3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class school { public function test($a1=0, $a=0) { } } class college extends school { public function test() { } } $item = new college(); $item->test(true, true); $item->test();
based on XasFn
Output for 7.0.0 - 7.2.0
Warning: Declaration of college::test() should be compatible with school::test($a1 = 0, $a = 0) in /in/beogi on line 10
Output for 5.5.0 - 5.6.25
Strict Standards: Declaration of college::test() should be compatible with school::test($a1 = 0, $a = 0) in /in/beogi on line 10