Fatal error: Uncaught TypeError: define(): Argument #2 ($value) cannot be an object, Closure given in /in/1ar5s:3
Stack trace:
#0 /in/1ar5s(3): define('MY_CONSTANT', Array)
#1 {main}
thrown in /in/1ar5s on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Constants may only evaluate to scalar values, arrays or resources in /in/1ar5s on line 3
Warning: Use of undefined constant MY_CONSTANT - assumed 'MY_CONSTANT' (this will throw an Error in a future version of PHP) in /in/1ar5s on line 4
Warning: Illegal string offset 'func' in /in/1ar5s on line 4
Fatal error: Uncaught Error: Call to undefined function M() in /in/1ar5s:4
Stack trace:
#0 {main}
thrown in /in/1ar5s on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33
Warning: Constants may only evaluate to scalar values or arrays in /in/1ar5s on line 3
Warning: Use of undefined constant MY_CONSTANT - assumed 'MY_CONSTANT' (this will throw an Error in a future version of PHP) in /in/1ar5s on line 4
Warning: Illegal string offset 'func' in /in/1ar5s on line 4
Fatal error: Uncaught Error: Call to undefined function M() in /in/1ar5s:4
Stack trace:
#0 {main}
thrown in /in/1ar5s on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
Warning: Constants may only evaluate to scalar values or arrays in /in/1ar5s on line 3
Notice: Use of undefined constant MY_CONSTANT - assumed 'MY_CONSTANT' in /in/1ar5s on line 4
Warning: Illegal string offset 'func' in /in/1ar5s on line 4
Fatal error: Uncaught Error: Call to undefined function M() in /in/1ar5s:4
Stack trace:
#0 {main}
thrown in /in/1ar5s on line 4
Process exited with code 255.
Output for 5.6.0 - 5.6.21
Parse error: syntax error, unexpected '(' in /in/1ar5s on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/1ar5s on line 4
Process exited with code 255.
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/1ar5s on line 3
Process exited with code 255.