3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("a","b","c"); $counter = 0; $status = array(); foreach($arr as $a){ $status[$counter] += 10; $status[$counter] += 20; $status[$counter] += 20; echo $status[$counter]."<br>"; $counter ++; }
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 0 in /in/p8ScI on line 6 50<br> Notice: Undefined offset: 1 in /in/p8ScI on line 6 50<br> Notice: Undefined offset: 2 in /in/p8ScI on line 6 50<br>
Output for 4.3.0 - 5.2.17
Notice: Undefined offset: 0 in /in/p8ScI on line 6 50<br> Notice: Undefined offset: 1 in /in/p8ScI on line 6 50<br> Notice: Undefined offset: 2 in /in/p8ScI on line 6 50<br>