@ 2015-12-10T15:21:20Z <?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();
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.19 , 8.3.0 - 8.3.7 Fatal error: Declaration of college::test() must be compatible with school::test($a1 = 0, $a = 0) in /in/beogi on line 8
Process exited with code 255 . Output for 7.4.0 - 7.4.33 Warning: Declaration of college::test() should be compatible with school::test($a1 = 0, $a = 0) in /in/beogi on line 8
Output for 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 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.5.38 , 5.6.0 - 5.6.40 Strict Standards: Declaration of college::test() should be compatible with school::test($a1 = 0, $a = 0) in /in/beogi on line 10
preferences:dark mode live preview
209.69 ms | 402 KiB | 332 Q