3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Specification {} trait Specification {} interface DefaultSpecification {} trait DefaultSpecification {} class DefaultSpecification {} class Eh extends DefaultSpecification { use DefaultSpecification; }
based on FJjRl
Output for 7.0.0 - 7.2.0
Fatal error: Cannot declare trait Specification, because the name is already in use in /in/S87Cp on line 4
Process exited with code 255.
Output for 5.4.1 - 5.6.28
Fatal error: Cannot redeclare class Specification in /in/S87Cp 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/S87Cp on line 4
Process exited with code 255.