3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class A { abstract protected function test($a, $b); } class B extends A { protected function test($a, $b, $c) { return; } }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: Declaration of B::test($a, $b, $c) must be compatible with A::test($a, $b) in /in/HAFNi on line 14
Process exited with code 255.

preferences:
171.6 ms | 1395 KiB | 35 Q