Solution by maromex.
Let P(x,y) denote the given assertion f(x2+yf(y))=x2+f(y2).
P(x,0):f(x2)=x2+f(0). This means f(x)=x+f(0) for all x≥0.
P(x,1):f(x2+f(1))=x2+f(1). This means f(x)=x for all x≥f(1). So x+f(0)=x for all x≥f(1), which means f(0)=0 and f(x)=x for all x≥0. We have f(y2)=y2, so
f(x2+yf(y))=x2+y2.
For a fixed y, we have x2+yf(y)≥0 for all sufficiently large x. Therefore, x2+yf(y)=f(x2+yf(y))=x2+y2 for all sufficiently large x for a fixed y. It follows that yf(y)=y2, and therefore f(y)=y for all y=0. We have f(0)=0 too.
So f(x)=x for all real x. This function works.