3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class seanTest { const private TESTING = 1; } var_dump(seanTest::TESTING)
based on JALkU
Output for 7.0.0
Parse error: syntax error, unexpected 'TESTING' (T_STRING), expecting '=' in /in/repGL on line 3
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected 'private' (T_PRIVATE), expecting identifier (T_STRING) in /in/repGL on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_PRIVATE, expecting T_STRING in /in/repGL on line 3
Process exited with code 255.