Solution by OronSH.
We claim that the solutions are
f(x)≡0orf(x)=x.
Both work. If f is constant, substitution gives f≡0. Assume from now on that f is not constant.
From P(0,y),
f(yf(0))=f(0)2.
Since f is not constant, f(0)=0.
Putting y=−x gives
0=f(x)2+xf(−x),
so for x=0,
f(−x)=−xf(x)2.
Putting x replaced by −x in the same relation gives
f(x)=xf(−x)2.
Combining these,
f(x)=x3f(x)4,
so for every x=0,
f(x)=0orf(x)=x.
If there is a=0 with f(a)=a, then for any b with f(b)=0,
P(a,b):f(a2+ab)=a2.
The value a2 is nonzero, so the pointwise alternative above forces a2+ab=a2, hence b=0. Thus no nonzero root exists, and f(x)=x for all x.
If no nonzero a satisfies f(a)=a, then f(x)=0 for every x=0, and also f(0)=0, so f≡0.