3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class B { function connect($a = null) { } } class A extends B { function connect() { } }
based on 9kjEE
Output for 7.0.0 - 7.2.6
Warning: Declaration of A::connect() should be compatible with B::connect($a = NULL) in /in/hDRQR on line 11
Output for 5.4.12 - 5.6.21
Strict Standards: Declaration of A::connect() should be compatible with B::connect($a = NULL) in /in/hDRQR on line 11
Output for 5.3.22 - 5.3.23, 5.3.25 - 5.3.29
Strict Standards: Declaration of A::connect() should be compatible with that of B::connect() in /in/hDRQR on line 11
Output for 5.3.24

Process exited with code 137.