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($foo) {} }
based on hRRiD
Output for 7.0.0 - 7.2.0
Warning: Declaration of Bar::test($foo) should be compatible with Foo::test($foo = NULL) in /in/db8GY on line 8
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of Bar::test() should be compatible with Foo::test($foo = NULL) in /in/db8GY on line 8