3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { } class B extends A{ } $r = new ReflectionClass('B'); var_dump($r->isSubclassOf('A'));
Output for 5.0.0 - 7.1.0
bool(true)
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: reflectionclass in <b>/in/M3lLu</b> on line <b>9</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/M3lLu</b> on line <b>9</b><br />