Solution by maromex.
Let P(x,y) denote
f(x2+yf(y))=x2+f(y)2.
From P(x,0), for every t≥0 we have
f(t)=t+f(0)2.
Putting t=0 gives f(0)=f(0)2, so f(0)=0 or f(0)=1.
If f(0)=1, then f(t)=t+1 for t≥0. For any fixed y, choose x sufficiently large so that x2+yf(y)≥0. Then
x2+yf(y)+1=f(x2+yf(y))=x2+f(y)2,
so f(y)2−yf(y)=1 for all y. Taking any y>0 and using f(y)=y+1 gives y+1=1, impossible. Hence f(0)=0.
Therefore
f(t)=t(t≥0).
Again fixing y and taking x sufficiently large gives
x2+yf(y)=x2+f(y)2,
so yf(y)=f(y)2. Thus f(y)=0 or f(y)=y for every real y.
Since f(t)=t is already forced for t≥0, the complete solution set is
f(x)={x,x or 0,x≥0,x<0..
Equivalently, choose any subset S⊆(−∞,0) and set f(x)=x for x∈S∪[0,∞) and f(x)=0 for x∈(−∞,0)∖S.
For every such function, yf(y)=f(y)2≥0, so x2+yf(y)≥0 and direct substitution verifies the equation.