3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class testClass { public function __construct(){echo 'JO';} } class t { public function __construct($T){ $myObj = new {$T}();} } $obj = new t('testClass');
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '{' in /in/HTTsF on line 8
Process exited with code 255.