3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface I { const A= 'xx'; } class A implements I{ const A = 'yy'; } var_dump(A::A);
based on QKMpT
Output for 5.2.12 - 5.2.17, 5.3.2 - 7.2.0
Fatal error: Cannot inherit previously-inherited or override constant A from interface I in /in/VGWfr on line 7
Process exited with code 255.
Output for 5.0.0 - 5.2.11, 5.3.0 - 5.3.1
Fatal error: Cannot inherit previously-inherited constant A from interface I in /in/VGWfr on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING in /in/VGWfr on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING in /in/VGWfr on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VGWfr on line 3
Process exited with code 255.