3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar($a, $b = null) { } } class Baz extends Foo { static function bar($a) { } }
Output for 8.0.1 - 8.0.26, 8.1.0 - 8.1.13
Fatal error: Declaration of Baz::bar($a) must be compatible with Foo::bar($a, $b = null) in /in/2cUek on line 12
Process exited with code 255.

preferences:
187.46 ms | 1008 KiB | 7 Q