3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class ChildClass extends ParentClass { function myFunction($param1, $param2) { } } class ParentClass { function myFunction($param1, $param2 = null) { } } $obj = new ChildClass;
Output for 7.0.0 - 7.1.0
Warning: Declaration of ChildClass::myFunction($param1, $param2) should be compatible with ParentClass::myFunction($param1, $param2 = NULL) in /in/5oBMi on line 2
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of ChildClass::myFunction() should be compatible with ParentClass::myFunction($param1, $param2 = NULL) in /in/5oBMi on line 3
Output for 5.3.0 - 5.3.29
Strict Standards: Declaration of ChildClass::myFunction() should be compatible with that of ParentClass::myFunction() in /in/5oBMi on line 3
Output for 5.0.0 - 5.2.17
Strict Standards: Declaration of ChildClass::myFunction() should be compatible with that of ParentClass::myFunction() in /in/5oBMi on line 2
Output for 4.3.0 - 4.4.9