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 strcmp($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/Loifr
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%2FLoifr%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%2FLoifr%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Loifr
function name:  {closure}
number of ops:  10
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        INIT_FCALL                                               'strcmp'
          3        FETCH_DIM_R                                      ~2      !0, 'refCardId'
          4        SEND_VAL                                                 ~2
          5        FETCH_DIM_R                                      ~3      !1, 'refCardId'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
          8      > RETURN                                                   $4
   13     9*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.96 ms | 1396 KiB | 19 Q