Which version of the PS3 is backwards compatible with PS1 and PS2 games?

I’m only asking because I plan on buying one soon out of nostalgia and I remember that there was a version that could play older games.