3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function foo($a) {} } class B extends A { public function foo($a, $b) {} }
based on g4EAU
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::foo($a, $b) should be compatible with A::foo($a) in /in/sflv7 on line 9
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of B::foo() should be compatible with A::foo($a) in /in/sflv7 on line 9
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in /in/sflv7 on line 9