Fatal error: Uncaught Error: Undefined constant " JSON_FORCE_OBJECT" in /in/9Q2T5:3
Stack trace:
#0 {main}
thrown in /in/9Q2T5 on line 3
Process exited with code 255.
Warning: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' (this will throw an Error in a future version of PHP) in /in/9Q2T5 on line 3
Warning: A non-numeric value encountered in /in/9Q2T5 on line 3
Notice: Undefined variable: foo in /in/9Q2T5 on line 10
null
Output for 7.3.32 - 7.3.33
Warning: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' (this will throw an Error in a future version of PHP) in /in/9Q2T5 on line 3
Warning: A non-numeric value encountered in /in/9Q2T5 on line 3
null
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Warning: A non-numeric value encountered in /in/9Q2T5 on line 3
Notice: Undefined variable: foo in /in/9Q2T5 on line 10
null
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Notice: Undefined variable: foo in /in/9Q2T5 on line 10
null
Output for 5.2.0 - 5.2.17
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Notice: Undefined variable: foo in /in/9Q2T5 on line 10
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed 'JSON_FORCE_OBJECT' in /in/9Q2T5 on line 10
Warning: json_encode() expects exactly 1 parameter, 2 given in /in/9Q2T5 on line 10
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Fatal error: Call to undefined function json_encode() in /in/9Q2T5 on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Fatal error: Call to undefined function: json_encode() in /in/9Q2T5 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Fatal error: Call to undefined function: json_encode() in /in/9Q2T5 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant JSON_FORCE_OBJECT - assumed ' JSON_FORCE_OBJECT' in /in/9Q2T5 on line 3
Fatal error: Call to undefined function: json_encode() in /in/9Q2T5 on line 10