3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array(1,2,3,4,5,6,7,8,9); $counter = 0; $start = 1; for($start; $start < 11; $start++) { $counter = $counter + 1; $total = $total + $list[$counter]; print $counter . "<BR>"; } ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: total in /in/UTjMq on line 9 1<BR>2<BR>3<BR>4<BR>5<BR>6<BR>7<BR>8<BR> Notice: Undefined offset: 9 in /in/UTjMq on line 9 9<BR> Notice: Undefined offset: 10 in /in/UTjMq on line 9 10<BR>
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: total in /in/UTjMq on line 9 1<BR>2<BR>3<BR>4<BR>5<BR>6<BR>7<BR>8<BR> Notice: Undefined index: 9 in /in/UTjMq on line 9 9<BR> Notice: Undefined index: 10 in /in/UTjMq on line 9 10<BR>
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: total in /in/UTjMq on line 9 1<BR>2<BR>3<BR>4<BR>5<BR>6<BR>7<BR>8<BR> Notice: Undefined offset: 9 in /in/UTjMq on line 9 9<BR> Notice: Undefined offset: 10 in /in/UTjMq on line 9 10<BR>
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: total in /in/UTjMq on line 9 1<BR>2<BR>3<BR>4<BR>5<BR>6<BR>7<BR>8<BR> Notice: Undefined offset: 9 in /in/UTjMq on line 9 9<BR> Notice: Undefined offset: 10 in /in/UTjMq on line 9 10<BR>