3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Vendor_MyClass_Works { const MY_CONST = 'core'; } class MyClass_Works extends Vendor_MyClass_Works { const MY_CONST = 'venture'; } interface Vendor_Interface_Fails { const MY_CONST = 'core'; } interface MyClass_Fails implements Vendor_Interface_Fails { const MY_CONST = 'venture'; }
Output for 5.4.0 - 5.4.9
Parse error: syntax error, unexpected 'implements' (T_IMPLEMENTS), expecting '{' in /in/Xeiag on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.19
Parse error: syntax error, unexpected T_IMPLEMENTS, expecting '{' in /in/Xeiag on line 18
Process exited with code 255.