As far as I know, class instantiation using a variable `new $className();` is supported in 5.3 for sure, however I'm not sure about 5.2 version and I can't check if this works OK on 5.2.

Can anyone tell what versions are supported?