3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static function test($bar = null) { var_dump(func_get_args()); } } class Baz extends Foo { public static function test() { parent::test(); } } Baz::test();
Output for 7.0.0 - 7.2.0
Warning: Declaration of Baz::test() should be compatible with Foo::test($bar = NULL) in /in/kBjdX on line 13 array(0) { }
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of Baz::test() should be compatible with Foo::test($bar = NULL) in /in/kBjdX on line 13 array(0) { }
Output for 5.3.19 - 5.3.29
Strict Standards: Declaration of Baz::test() should be compatible with that of Foo::test() in /in/kBjdX on line 13 array(0) { }