3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class test{} function dynamic($name) { return new $name; } $result = dynamic( 'test' ); var_dump( $result );<?php
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected '<' in /in/W22uR on line 11
Process exited with code 255.