3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function test($foo = null) {} } class Bar extends Foo { public function test() {} } $bar = new Bar; $bar->test();
based on nn0dk
Output for 7.0.0 - 7.2.0
Warning: Declaration of Bar::test() should be compatible with Foo::test($foo = NULL) in /in/9VINs on line 8
Output for 5.4.0 - 5.6.21
Strict Standards: Declaration of Bar::test() should be compatible with Foo::test($foo = NULL) in /in/9VINs on line 8
Output for 5.3.19 - 5.3.29
Strict Standards: Declaration of Bar::test() should be compatible with that of Foo::test() in /in/9VINs on line 8