3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyClass { public function method($a, $b = null) { } } class ExtendedClass extends MyClass { public function method($a, $b) { } }
Output for 7.0.28 - 7.3.0rc3
Warning: Declaration of ExtendedClass::method($a, $b) should be compatible with MyClass::method($a, $b = NULL) in /in/YogdX on line 17
Output for 5.6.38
Strict Standards: Declaration of ExtendedClass::method() should be compatible with MyClass::method($a, $b = NULL) in /in/YogdX on line 17