int(42)
Fatal error: Uncaught ValueError: define(): Argument #1 ($constant_name) cannot be a class constant in /in/9W5f5:6
Stack trace:
#0 /in/9W5f5(6): define('Foo::LOL', 37)
#1 {main}
thrown in /in/9W5f5 on line 6
Process exited with code 255.
int(42)
Warning: Class constants cannot be defined or redefined in /in/9W5f5 on line 6
bool(false)
Fatal error: Uncaught Error: Undefined class constant 'LOL' in /in/9W5f5:7
Stack trace:
#0 {main}
thrown in /in/9W5f5 on line 7
Process exited with code 255.
int(42)
Warning: Class constants cannot be defined or redefined in /in/9W5f5 on line 6
bool(false)
Fatal error: Undefined class constant 'LOL' in /in/9W5f5 on line 7
Process exited with code 255.
int(42)
bool(true)
Fatal error: Undefined class constant 'LOL' in /in/9W5f5 on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/9W5f5 on line 3
Process exited with code 255.
Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/9W5f5 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/9W5f5 on line 3
Process exited with code 255.