3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(is_a('Iterator', 'Traversable', true)); var_dump(is_a('Traversable', 'Traversable', true)); var_dump(is_a('Traversable', 'Iterator', true));
Output for 5.3.9 - 7.1.0
bool(true) bool(true) bool(false)
Output for 5.3.0 - 5.3.8
Warning: is_a() expects exactly 2 parameters, 3 given in /in/9A7sP on line 3 NULL Warning: is_a() expects exactly 2 parameters, 3 given in /in/9A7sP on line 5 NULL Warning: is_a() expects exactly 2 parameters, 3 given in /in/9A7sP on line 7 NULL
Output for 5.0.0 - 5.2.17
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/9A7sP on line 3 Warning: Wrong parameter count for is_a() in /in/9A7sP on line 3 NULL Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/9A7sP on line 5 Warning: Wrong parameter count for is_a() in /in/9A7sP on line 5 NULL Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/9A7sP on line 7 Warning: Wrong parameter count for is_a() in /in/9A7sP on line 7 NULL
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for is_a() in /in/9A7sP on line 3 NULL Warning: Wrong parameter count for is_a() in /in/9A7sP on line 5 NULL Warning: Wrong parameter count for is_a() in /in/9A7sP on line 7 NULL