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); $activeSkillList->uasort(function($skill1, $skill2) { return $skill1['refCardId'] - $skill2['refCardId']; }); print_r($activeSkillList); foreach($activeSkillList as $key => $value) { } print_r($activeSkillList);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/jAmIP
function name:  (null)
number of ops:  27
compiled vars:  !0 = $activeSkillList, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cpre%3E'
    3     1        NEW                                              $3      'ArrayObject'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    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                                                 
   10    11        INIT_METHOD_CALL                                         !0, 'uasort'
         12        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FjAmIP%3A10%240'
   13    13        SEND_VAL_EX                                              ~9
         14        DO_FCALL                                      0          
   15    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   16    18      > FE_RESET_R                                       $12     !0, ->22
         19    > > FE_FETCH_R                                       ~13     $12, !1, ->22
         20    >   ASSIGN                                                   !2, ~13
         21      > JMP                                                      ->19
         22    >   FE_FREE                                                  $12
   18    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FjAmIP%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jAmIP
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $skill1, !1 = $skill2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     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%2FjAmIP%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.34 ms | 1400 KiB | 15 Q