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));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/96kk0
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   28     1        INIT_FCALL                                               'uasort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F96kk0%3A28%240'
   30     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   32     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'current'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F96kk0%3A28%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/96kk0
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   28     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   29     2        FETCH_DIM_R                                      ~2      !1, 'totalGames'
          3        FETCH_DIM_R                                      ~3      !0, 'totalGames'
          4        SUB                                              ~4      ~2, ~3
          5      > RETURN                                                   ~4
   30     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F96kk0%3A28%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.52 ms | 1399 KiB | 19 Q