3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test{ private const TEST = 'HI'; }
Output for 7.1.0
Output for 5.4.11 - 7.0.2
Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /in/GTtNd on line 4
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_CONST, expecting T_VARIABLE in /in/GTtNd on line 4
Process exited with code 255.