3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr= 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 ); $count=count($arr); $sum=0; foreach ($arr as $a) { $sum=$sum+$a; } $sum/$count; $sort = sort($arr); print_r($sort);
based on urWki
Output for 4.3.0 - 7.1.0
1