3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<pre>"; $activeSkillList = array(); $activeSkillList['U1_1021002'] = array('refCardId'=> 'U1_1021002'); $activeSkillList['U3_1052005'] = array('refCardId'=> 'U3_1052005'); $tmp = $activeSkillList; print_r($tmp); uasort($tmp, function($skill1, $skill2) { return $skill1['refCardId'] - $skill2['refCardId']; }); print_r($tmp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cdOB
function name:  (null)
number of ops:  19
compiled vars:  !0 = $activeSkillList, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cpre%3E'
    3     1        ASSIGN                                                   !0, <array>
    5     2        ASSIGN_DIM                                               !0, 'U1_1021002'
          3        OP_DATA                                                  <array>
    6     4        ASSIGN_DIM                                               !0, 'U3_1052005'
          5        OP_DATA                                                  <array>
    8     6        ASSIGN                                                   !1, !0
    9     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'uasort'
         11        SEND_REF                                                 !1
         12        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3cdOB%3A11%240'
   13    13        SEND_VAL                                                 ~7
         14        DO_ICALL                                                 
   14    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3cdOB%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3cdOB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $skill1, !1 = $skill2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        FETCH_DIM_R                                      ~2      !0, 'refCardId'
          3        FETCH_DIM_R                                      ~3      !1, 'refCardId'
          4        SUB                                              ~4      ~2, ~3
          5      > RETURN                                                   ~4
   13     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3cdOB%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.27 ms | 1396 KiB | 17 Q