3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $y = new ArrayObject([]); echo $y[NULL];
Output for 5.4.8 - 5.6.14, 5.6.16 - 7.2.0
Notice: Undefined index: in /in/nBtsm on line 3
Output for 5.6.15

Process exited with code 139.
Output for 5.4.0 - 5.4.7
Warning: Illegal offset type in /in/nBtsm on line 3
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/nBtsm on line 2
Process exited with code 255.