3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class B { function connect($a = null, $b = null) { } } class A extends B { function connect($a = "") { } }
based on Rm21g
Output for 7.0.0 - 7.2.10
Warning: Declaration of A::connect($a = '') should be compatible with B::connect($a = NULL, $b = NULL) in /in/vMDT1 on line 11
Output for hhvm-3.11.1 - 3.22.0
Output for 5.5.0 - 5.6.38
Strict Standards: Declaration of A::connect() should be compatible with B::connect($a = NULL, $b = NULL) in /in/vMDT1 on line 11