3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($data as $key => $row) { $volume[$key] = $row['volume']; $edition[$key] = $row['edition']; } print_r($volume); // Sort the data with volume descending, edition ascending // Add $data as the last parameter, to sort by the common key array_multisort($volume, SORT_DESC, $edition, SORT_ASC, $data); print_r($data);

preferences:
39.26 ms | 402 KiB | 5 Q