3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array(-5,0,4,9,4,3,-2,0,1,8); for ($i=0;$i<=9;$i++) { if ($list[$i] >= 4) { $total = $total + $list[$i]; } } echo $total; ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: total in /in/ZAClu on line 5 25
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: total in /in/ZAClu on line 5 25