3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {} $foo = new Foo; echo get_class($foo); echo "\n"; echo (new ReflectionClass($foo))->getName();
Output for 5.4.0 - 7.2.0
Foo Foo
Output for 5.2.14 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/vu7oF on line 9
Process exited with code 255.