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'); print_r($activeSkillList); uasort($activeSkillList, function($skill1, $skill2) { return strcmp($skill1['refCardId'],$skill2['refCardId']); }); print_r($activeSkillList); $tmp = new ArrayObject($activeSkillList); foreach($tmp as $key => $value) { $tmp[$key]['1111'] = 44; } print_r($tmp);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 28
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/ogntv
function name:  (null)
number of ops:  33
compiled vars:  !0 = $activeSkillList, !1 = $tmp, !2 = $value, !3 = $key
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        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
   10     9        INIT_FCALL                                               'uasort'
         10        SEND_REF                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fogntv%3A10%240'
   11    12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
   13    17        NEW                                              $11     'ArrayObject'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !1, $11
   14    21      > FE_RESET_R                                       $14     !1, ->28
         22    > > FE_FETCH_R                                       ~15     $14, !2, ->28
         23    >   ASSIGN                                                   !3, ~15
   15    24        FETCH_DIM_W                                      $17     !1, !3
         25        ASSIGN_DIM                                               $17, 1111
         26        OP_DATA                                                  44
   14    27      > JMP                                                      ->22
         28    >   FE_FREE                                                  $14
   16    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2Fogntv%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.24 ms | 1400 KiB | 19 Q