3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function __construct(); } class Bar implements Foo { public function __construct(int $bar) { } }
Output for 8.1.1 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Declaration of Bar::__construct(int $bar) must be compatible with Foo::__construct() in /in/jfIi7o on line 8
Process exited with code 255.

preferences:
54.56 ms | 402 KiB | 28 Q