3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { } class Bar extends Foo { } var_dump(is_a('Foo', 'Foo', true)); var_dump(is_a('Bar', 'Foo', true)); var_dump(is_a('Bar', 'Bar', true));
Output for 5.3.9 - 7.2.0
bool(true) bool(true) bool(true)
Output for 5.3.0 - 5.3.8
Warning: is_a() expects exactly 2 parameters, 3 given in /in/JSpHE on line 13 NULL Warning: is_a() expects exactly 2 parameters, 3 given in /in/JSpHE on line 14 NULL Warning: is_a() expects exactly 2 parameters, 3 given in /in/JSpHE on line 15 NULL
Output for 5.0.0 - 5.2.17
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/JSpHE on line 13 Warning: Wrong parameter count for is_a() in /in/JSpHE on line 13 NULL Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/JSpHE on line 14 Warning: Wrong parameter count for is_a() in /in/JSpHE on line 14 NULL Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /in/JSpHE on line 15 Warning: Wrong parameter count for is_a() in /in/JSpHE on line 15 NULL
Output for 4.3.0 - 4.4.9
Warning: Wrong parameter count for is_a() in /in/JSpHE on line 13 NULL Warning: Wrong parameter count for is_a() in /in/JSpHE on line 14 NULL Warning: Wrong parameter count for is_a() in /in/JSpHE on line 15 NULL