3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Foo Foo
Output for hhvm-3.10.0

Process exited with code 153.
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.