3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'team1' => [ 'points' => 10, 'players' => [], ], 'team2' => [ 'points' => 23, 'players' => [] ] ]; uasort($array, fn($a, $b) => $b['points'] <=> $a['points']); var_export($array);

preferences:
37.13 ms | 405 KiB | 5 Q