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 strcmp($skill1['refCardId'],$skill2['refCardId']); }); foreach($activeSkillList as $key => $value) { $activeSkillList[$key]['index'] = rand(); } print_r($activeSkillList);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/1uv45
function name:  (null)
number of ops:  29
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>
    8     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%2F1uv45%3A10%240'
   12    13        SEND_VAL_EX                                              ~9
         14        DO_FCALL                                      0          
   15    15      > FE_RESET_R                                       $11     !0, ->24
         16    > > FE_FETCH_R                                       ~12     $11, !1, ->24
         17    >   ASSIGN                                                   !2, ~12
   16    18        INIT_FCALL                                               'rand'
         19        DO_ICALL                                         $16     
         20        FETCH_DIM_W                                      $14     !0, !2
         21        ASSIGN_DIM                                               $14, 'index'
         22        OP_DATA                                                  $16
   15    23      > JMP                                                      ->16
         24    >   FE_FREE                                                  $11
   18    25        INIT_FCALL                                               'print_r'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F1uv45%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1uv45
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      
   11     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
   12     9*     > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.63 ms | 1400 KiB | 19 Q