3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<pre>"; $activeSkillList = new ArrayObject(); $activeSkillList['U1_1021002'] = array('refCardId'=> 'U1_1021002'); $activeSkillList['U3_1052005'] = array('refCardId'=> 'U3_1052005'); print_r($activeSkillList); $tmp = $activeSkillList->getArrayCopy(); 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/X2ILL
function name:  (null)
number of ops:  26
compiled vars:  !0 = $activeSkillList, !1 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cpre%3E'
    3     1        NEW                                              $2      'ArrayObject'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN_DIM                                               !0, 'U1_1021002'
          5        OP_DATA                                                  <array>
    6     6        ASSIGN_DIM                                               !0, 'U3_1052005'
          7        OP_DATA                                                  <array>
    7     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    9    11        INIT_METHOD_CALL                                         !0, 'getArrayCopy'
         12        DO_FCALL                                      0  $8      
         13        ASSIGN                                                   !1, $8
   10    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   12    17        INIT_FCALL                                               'uasort'
         18        SEND_REF                                                 !1
         19        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FX2ILL%3A12%240'
   14    20        SEND_VAL                                                 ~11
         21        DO_ICALL                                                 
   15    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FX2ILL%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.16 ms | 1396 KiB | 17 Q