3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IA {} class B { use A; } trait A implements IA {}
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/GdGTu on line 10
Process exited with code 255.

preferences:
170.13 ms | 1387 KiB | 36 Q