3v4l.org

run code in 300+ PHP versions simultaneously
<?php $TestResult = [ 'Smith' => ['98', '100', '78', '91'], 'Johnson' => ['67', '85', '92', '88'] ]; $Total = array_sum($TestResult['Smith']); $Average = $Total/count($TestResult['Smith']); echo $Average;

preferences:
121.6 ms | 404 KiB | 5 Q