3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} trait T implements I {} class C { use T; }
Output for 5.4.0 - 5.4.12
Fatal error: Cannot use 'I' as interface on 'T' since it is a Trait in 2nXZZ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_STRING in 2nXZZ on line 4
Process exited with code 255.

preferences:
164.68 ms | 1395 KiB | 43 Q