3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ExpectsFooProperty { abstract public string $foo { get; } } trait ProvidesFooProperty { use ExpectsFooProperty; public readonly string $foo; } final readonly class FooPropertyImpl { use ProvidesFooProperty; }
Output for 8.4.6 - 8.4.10
Fatal error: ProvidesFooProperty and ExpectsFooProperty define the same hooked property ($foo) in the composition of ProvidesFooProperty. Conflict resolution between hooked properties is currently not supported. Class was composed in /in/tM9i5 on line 8
Process exited with code 255.

preferences:
164.78 ms | 997 KiB | 7 Q