3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; echo $a[1];
Output for 8.0.0 - 8.0.26, 8.1.0 - 8.1.13
Warning: Trying to access array offset on value of type null in /in/cO0n3 on line 4
Output for 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
Notice: Trying to access array offset on value of type null in /in/cO0n3 on line 4
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.26

preferences:
73.2 ms | 412 KiB | 5 Q