3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $scores = array( "Mike" => array(04, 03, 00, 07, 04, 07, 00, 01, 00, 07, 04), "Kyle" => array(07, 01, 00, 03, 04, 01, 00, 07, 03, 04, 04), "Johnny" => array(07, 07, 00, 03, 00, 04, 00, 01, 01, 04, 03), "Will" => array(03, 04, 00, 03, 04, 07, 00, 01, 00, 07, 04), "Vasques" => array(03, 01, 00, 03, 04, 07, 00, 01, 00, 07, 07) ); usort($scores, function($a, $b) { return $a["mid"] - $b["mid"; }); //start loop for rows foreach($scores as $key=>$value) { echo array_sum($value) . "<br />"; }
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected ';', expecting ']' in /in/IqsBG on line 11
Process exited with code 255.