3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1, 2, 3); echo $a[0]; echo $a[5]; $val = $a[5]; var_dump($val);
based on pP1lP
Output for 5.3.0 - 7.2.0
1 Notice: Undefined offset: 5 in /in/GFG4V on line 6 Notice: Undefined offset: 5 in /in/GFG4V on line 7 NULL
Output for 4.3.0 - 5.2.17
1 Notice: Undefined offset: 5 in /in/GFG4V on line 6 Notice: Undefined offset: 5 in /in/GFG4V on line 7 NULL