3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace what; use const false as true; echo 4 + true;
Output for 5.6.8 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4
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/g5Ee7 on line 6
Process exited with code 255.