3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace what; use const true as false; echo 4 + false;
Output for 5.6.8 - 7.2.0
5
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected 'const' (T_CONST), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /in/4hX45 on line 6
Process exited with code 255.