3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_scores = [ 82 => ['score' => 1, 'time' => 6.442], 34 => ['score' => 1, 'time' => 5.646], 66 => ['score' => 3, 'time' => 1.554], 7 => ['score' => 2, 'time' => 4.442], 99 => ['score' => 4, 'time' => 3.646], 55 => ['score' => 1, 'time' => 2.554] ]; uasort($user_scores, function($a, $b) { return [$b['score'], $a['time']] <=> [$a['score'], $b['time']]; }); var_export($user_scores);

preferences:
24.63 ms | 405 KiB | 5 Q