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.32, 8.4.1 - 8.4.23, 8.5.0 - 8.5.8
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.32
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:
46.23 ms | 916 KiB | 4 Q