3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(null [[]]); // NULL var_dump(true [[]]); // NULL var_dump(false [[]]); // NULL var_dump( [][[]]); // fatal error
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.7
Warning: Trying to access array offset on null in /in/flQ68 on line 4 NULL Warning: Trying to access array offset on true in /in/flQ68 on line 5 NULL Warning: Trying to access array offset on false in /in/flQ68 on line 6 NULL Fatal error: Uncaught TypeError: Cannot access offset of type array on array in /in/flQ68:8 Stack trace: #0 {main} thrown in /in/flQ68 on line 8
Process exited with code 255.
Output for 8.1.34, 8.2.0 - 8.2.30
Warning: Trying to access array offset on value of type null in /in/flQ68 on line 4 NULL Warning: Trying to access array offset on value of type bool in /in/flQ68 on line 5 NULL Warning: Trying to access array offset on value of type bool in /in/flQ68 on line 6 NULL Fatal error: Uncaught TypeError: Illegal offset type in /in/flQ68:8 Stack trace: #0 {main} thrown in /in/flQ68 on line 8
Process exited with code 255.

preferences:
49.39 ms | 885 KiB | 4 Q