3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class C { function f($a) { } } class D extends C { function f($a,$b) { } }
Output for 7.0.0 - 7.1.0
Warning: Declaration of D::f($a, $b) should be compatible with C::f($a) in /in/A5Kjg on line 14
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of D::f() should be compatible with C::f($a) in /in/A5Kjg on line 14
Output for 5.0.0 - 5.3.29
Strict Standards: Declaration of D::f() should be compatible with that of C::f() in /in/A5Kjg on line 14
Output for 4.3.0 - 4.4.9