3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $o = NULL; var_dump($o[0]); $a = array(); var_dump($a['0']); var_dump($o['adfasdfdsf']);
Output for 5.4.0 - 7.1.0
NULL Notice: Undefined offset: 0 in /in/DgTZN on line 7 NULL NULL
Output for 5.3.0 - 5.3.29
NULL Notice: Undefined index: 0 in /in/DgTZN on line 7 NULL NULL
Output for 4.3.0 - 5.2.17
NULL Notice: Undefined index: 0 in /in/DgTZN on line 7 NULL NULL