3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar() { } } ReflectionClass::export('Foo');
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Class [ <user> class Foo ] { @@ /in/fL2JD 3-6 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [1] { Method [ <user> public method bar ] { @@ /in/fL2JD 4 - 5 } } }
Output for hhvm-3.10.0 - 3.13.2
Class [ <user> class Foo ] { @@ /in/fL2JD 3-6 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [1] { Method [ <user> public method bar ] { @@ /in/fL2JD 4 - 5 } } }
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'reflectionclass' in /in/fL2JD on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'reflectionclass' in /in/fL2JD on line 8