3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class B implements IA { // use A; } interface IA {} trait A implements IA {}
based on s4buj
Output for 7.0.0 - 7.1.7
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/1kUYI on line 9
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/1kUYI on line 9
Process exited with code 255.