3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface DefaultSpecification {} trait DefaultSpecification {} class DefaultSpecification {} class Eh extends DefaultSpecification { use DefaultSpecification; }
based on CLY2k
Output for 7.0.0 - 7.2.0
Fatal error: Cannot declare trait DefaultSpecification, because the name is already in use in /in/FJjRl on line 4
Process exited with code 255.
Output for 5.4.1 - 5.6.28
Fatal error: Cannot redeclare class DefaultSpecification in /in/FJjRl on line 4
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/FJjRl on line 4
Process exited with code 255.