3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("foo", "baa", "ahahaha"); unset($a[1]); echo '<pre>'; print_r($a); for($i = 0; $i < count($a); $i++) { echo 'val at ', $i; echo " ", $a[$i], "\r\n"; }
Output for 5.3.0 - 7.1.0
<pre>Array ( [0] => foo [2] => ahahaha ) val at 0 foo val at 1 Notice: Undefined offset: 1 in /in/YcIFa on line 10
Output for 4.3.0 - 5.2.17
<pre>Array ( [0] => foo [2] => ahahaha ) val at 0 foo val at 1 Notice: Undefined offset: 1 in /in/YcIFa on line 10