3v4l.org

run code in 200+ PHP versions simultaneously
<?php trait T { abstract public function test(int $x); } class P { public function test(string $x) {} } class C extends P { use T; }
based on SeVK3
Output for 7.4.0 - 7.4.1
Fatal error: Declaration of P::test(string $x) must be compatible with T::test(int $x) in /in/4VCIp on line 8
Process exited with code 255.
Output for 7.2.0 - 7.3.13
Fatal error: Declaration of P::test(string $x) must be compatible with T::test(int $x) in /in/4VCIp on line 11
Process exited with code 255.