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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HcqRK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $user_scores
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'uasort'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   16     4        SEND_VAL                                                 ~2
   12     5        DO_ICALL                                                 
   17     6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HcqRK
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        FETCH_DIM_R                                      ~2      !1, 'score'
          3        INIT_ARRAY                                       ~3      ~2
          4        FETCH_DIM_R                                      ~4      !0, 'time'
          5        ADD_ARRAY_ELEMENT                                ~3      ~4
   15     6        FETCH_DIM_R                                      ~5      !0, 'score'
          7        INIT_ARRAY                                       ~6      ~5
          8        FETCH_DIM_R                                      ~7      !1, 'time'
          9        ADD_ARRAY_ELEMENT                                ~6      ~7
         10        SPACESHIP                                        ~8      ~3, ~6
         11      > RETURN                                                   ~8
   16    12*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.16 ms | 1460 KiB | 15 Q