3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $r=array(78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76, 73, 68, 62, 73, 72, 65, 74, 62, 62, 65, 64, 68, 73, 75, 79, 73); $sum=array_sum($r); $cnt=count($r); $avg=$sum/$cnt; echo "Average Temperature is ".$avg."<br>"; ?>
based on LrFdZ
Output for 4.3.0 - 7.2.0
Average Temperature is 69.766666666667<br>