3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class Test { public function testFunction($param = false) { } } class TestOverride extends Test { public function testFunction() { } }
based on I4Bcn
Output for 7.0.0 - 7.2.0
Warning: Declaration of TestOverride::testFunction() should be compatible with Test::testFunction($param = false) in /in/NFmhd on line 13
Output for 5.4.2 - 5.6.28
Strict Standards: Declaration of TestOverride::testFunction() should be compatible with Test::testFunction($param = false) in /in/NFmhd on line 13
Output for 5.3.18 - 5.3.29
Strict Standards: Declaration of TestOverride::testFunction() should be compatible with that of Test::testFunction() in /in/NFmhd on line 13