3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo null['foo'] === null;
Output for 8.3.0 - 8.3.4
Warning: Trying to access array offset on null in /in/ngse5 on line 3 1
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17
Warning: Trying to access array offset on value of type null in /in/ngse5 on line 3 1
Output for 7.4.0 - 7.4.33
Notice: Trying to access array offset on value of type null in /in/ngse5 on line 3 1
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
1
Output for 5.5.0 - 5.5.36
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/ngse5 on line 3
Process exited with code 255.

preferences:
239.15 ms | 401 KiB | 226 Q