3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Person { } $reflection = new ReflectionClass('Person'); print_r($reflection);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
ReflectionClass Object ( [name] => Person )
Output for hhvm-3.10.0 - 3.12.0
ReflectionClass Object ( [name] => Person [obj:ReflectionClass:private] => )
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: reflectionclass in <b>/in/TM3dv</b> on line <b>7</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: reflectionclass in <b>/in/TM3dv</b> on line <b>7</b><br />