3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface IA {} trait A implements IA {} class B { use A; }
based on fuetE
Output for 7.0.0 - 7.1.7
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/p7Fqe on line 6
Process exited with code 255.
Output for hhvm-3.15.4
Output for 5.6.0 - 5.6.30
Fatal error: Cannot use 'IA' as interface on 'A' since it is a Trait in /in/p7Fqe on line 6
Process exited with code 255.