3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_subclass_of('Iterator', 'Traversable', true)); var_dump(is_subclass_of('Traversable', 'Traversable', true)); var_dump(is_subclass_of('Traversable', 'Iterator', true));
based on 9A7sP
Output for 5.3.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) bool(false) bool(false)
Output for 5.3.0 - 5.3.8
Warning: is_subclass_of() expects exactly 2 parameters, 3 given in /in/RSAtv on line 3 NULL Warning: is_subclass_of() expects exactly 2 parameters, 3 given in /in/RSAtv on line 5 NULL Warning: is_subclass_of() expects exactly 2 parameters, 3 given in /in/RSAtv on line 7 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for is_subclass_of() in /in/RSAtv on line 3 NULL Warning: Wrong parameter count for is_subclass_of() in /in/RSAtv on line 5 NULL Warning: Wrong parameter count for is_subclass_of() in /in/RSAtv on line 7 NULL