3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * 运行模式 * * debug 调试模式, 会开启详细的日志记录和错误提示 * * default 默认模式, 会输出错误提示 * * production 生产模式, 不会执行任何额外操作, 最高效地执行代码 */ const Debug = 2; const Default = 1; const Production = 0; const RunMode = Default;
Output for 5.4.16
Parse error: syntax error, unexpected 'Default' (T_DEFAULT), expecting identifier (T_STRING) in /in/Rp16m on line 11
Process exited with code 255.
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'Default' (T_DEFAULT), expecting identifier (T_STRING) in Rp16m on line 11
Process exited with code 255.
Output for 5.3.25 - 5.3.26
Parse error: syntax error, unexpected T_DEFAULT, expecting T_STRING in /in/Rp16m on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_DEFAULT, expecting T_STRING in Rp16m on line 11
Process exited with code 255.