3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function x($id = null) { } } class B extends A { public function x() { } } $b = new B();
Output for 7.0.0 - 7.3.0rc4
Warning: Declaration of B::x() should be compatible with A::x($id = NULL) in /in/SRAdX on line 13
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of B::x() should be compatible with A::x($id = NULL) in /in/SRAdX on line 13
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of B::x() should be compatible with that of A::x() in /in/SRAdX on line 13