3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class X {} $a = (object) [ 'name' => 'X' ]; var_dump(new ($a->name)());
based on Cue1Z
Output for 7.1.25 - 7.3.1
Parse error: syntax error, unexpected '(' in /in/Nu53e on line 9
Process exited with code 255.