3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Average Temperature is 69.766666666667<br>