3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(-3,5,1,3,2,10); function array_avg($array) { $sum = 0; for ($i = 0; $i <= count($array); $i++) { $sum += $array[$i]; } echo $sum; }
based on PQFBH
Output for 4.3.0 - 7.1.0