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 Dnlsr
Output for 7.1.25 - 7.3.1
Parse error: syntax error, unexpected '{' in /in/enB8h on line 9
Process exited with code 255.