3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
Warning: Trying to access array offset on null in /in/dNmX4 on line 13 Warning: Trying to access array offset on null in /in/dNmX4 on line 14 Warning: Trying to access array offset on null in /in/dNmX4 on line 14 Warning: Undefined array key "nope" in /in/dNmX4 on line 16 Warning: Undefined array key "nope" in /in/dNmX4 on line 17 Warning: Trying to access array offset on null in /in/dNmX4 on line 17 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/dNmX4:19 Stack trace: #0 {main} thrown in /in/dNmX4 on line 19
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28
Warning: Trying to access array offset on value of type null in /in/dNmX4 on line 13 Warning: Trying to access array offset on value of type null in /in/dNmX4 on line 14 Warning: Trying to access array offset on value of type null in /in/dNmX4 on line 14 Warning: Undefined array key "nope" in /in/dNmX4 on line 16 Warning: Undefined array key "nope" in /in/dNmX4 on line 17 Warning: Trying to access array offset on value of type null in /in/dNmX4 on line 17 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/dNmX4:19 Stack trace: #0 {main} thrown in /in/dNmX4 on line 19
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 13 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 14 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 14 Notice: Undefined index: nope in /in/dNmX4 on line 16 Notice: Undefined index: nope in /in/dNmX4 on line 17 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 17 Warning: Illegal string offset 'nope' in /in/dNmX4 on line 19 s Warning: Illegal string offset 'nope' in /in/dNmX4 on line 20 Warning: Illegal string offset 'sure' in /in/dNmX4 on line 20 s Notice: Trying to access array offset on value of type int in /in/dNmX4 on line 22 Notice: Trying to access array offset on value of type int in /in/dNmX4 on line 23 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 23 Notice: Trying to access array offset on value of type float in /in/dNmX4 on line 25 Notice: Trying to access array offset on value of type float in /in/dNmX4 on line 26 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 26 Notice: Trying to access array offset on value of type bool in /in/dNmX4 on line 28 Notice: Trying to access array offset on value of type bool in /in/dNmX4 on line 29 Notice: Trying to access array offset on value of type null in /in/dNmX4 on line 29 Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/dNmX4:31 Stack trace: #0 {main} thrown in /in/dNmX4 on line 31
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Notice: Undefined index: nope in /in/dNmX4 on line 16 Notice: Undefined index: nope in /in/dNmX4 on line 17 Warning: Illegal string offset 'nope' in /in/dNmX4 on line 19 s Warning: Illegal string offset 'nope' in /in/dNmX4 on line 20 Warning: Illegal string offset 'sure' in /in/dNmX4 on line 20 s Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/dNmX4:31 Stack trace: #0 {main} thrown in /in/dNmX4 on line 31
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Undefined index: nope in /in/dNmX4 on line 16 Notice: Undefined index: nope in /in/dNmX4 on line 17 Warning: Illegal string offset 'nope' in /in/dNmX4 on line 19 s Warning: Illegal string offset 'nope' in /in/dNmX4 on line 20 Warning: Illegal string offset 'sure' in /in/dNmX4 on line 20 s Fatal error: Cannot use object of type stdClass as array in /in/dNmX4 on line 31
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Notice: Undefined index: nope in /in/dNmX4 on line 16 Notice: Undefined index: nope in /in/dNmX4 on line 17 s Fatal error: Cannot use string offset as an array in /in/dNmX4 on line 20
Process exited with code 255.

preferences:
114.53 ms | 420 KiB | 5 Q