3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //error_reporting(E_STRICT); class A{ function foo(){} } class B extends A{ function foo($a){} }
based on nUDU8
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::foo($a) should be compatible with A::foo() in /in/Q10nS on line 8
Output for 5.4.2 - 5.6.28
Strict Standards: Declaration of B::foo() should be compatible with A::foo() in /in/Q10nS on line 8
Output for 5.3.17 - 5.3.29
Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in /in/Q10nS on line 8