3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ParentClass { public static function xx($x) { echo 'a'; } } class ChildClass extends ParentClass { public static function xx($x, $y) { echo 'a'; } } new ChildClass(5,6);
based on Q8vfB
Output for 7.0.0 - 7.2.0
Warning: Declaration of ChildClass::xx($x, $y) should be compatible with ParentClass::xx($x) in /in/CDBRO on line 13
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of ChildClass::xx() should be compatible with ParentClass::xx($x) in /in/CDBRO on line 13
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of ChildClass::xx() should be compatible with that of ParentClass::xx() in /in/CDBRO on line 13