3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( '682' => Array ( 'nature' => 682, 'totalGames' => 3, 'category' => 'super' ), '707' => Array ( 'nature' => 707, 'totalGames' => 2, 'category' => 'event' ), '728' => Array ( 'nature' => 728, 'totalGames' => 2, 'category' => 'event' ) ); uasort($arr,function($a,$b){ return $b['totalGames'] - $a['totalGames']; }); print_r(current($arr));

preferences:
60.77 ms | 402 KiB | 5 Q