3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function _AVG($args){ /*$count = func_num_args(); $args = func_get_args();*/ $count = count($args); $sum = array_sum($args); return bcdiv($sum,$count); } echo _AVG(array(0.99,1.80,5.03));
Output for 4.3.0 - 7.1.0
2