3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQ0Eu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'cat1'
    5     1        OP_DATA                                                  <array>
   19     2        ASSIGN_DIM                                               !0, 'cat2'
   22     3        OP_DATA                                                  <array>
   41     4        INIT_FCALL                                               'array_sort_by_column'
          5        SEND_REF                                                 !0
          6        SEND_VAL                                                 'attrSortOrder'
          7        DO_FCALL                                      0          
   43     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function array_sort_by_column:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 126) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/pQ0Eu
function name:  array_sort_by_column
number of ops:  19
compiled vars:  !0 = $arr, !1 = $col, !2 = $dir, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      <const ast>
   37     3      > FE_RESET_RW                                      $4      !0, ->17
          4    > > FE_FETCH_RW                                              $4, !3, ->17
   38     5    >   INIT_FCALL                                               'array_multisort'
          6        INIT_FCALL                                               'array_column'
          7        FETCH_DIM_R                                      ~5      !3, 'attributes'
          8        SEND_VAL                                                 ~5
          9        SEND_VAL                                                 'attrSortOrder'
         10        DO_ICALL                                         $6      
         11        SEND_VAL                                                 $6
         12        SEND_REF                                                 !2
         13        FETCH_DIM_W                                      $7      !3, 'attributes'
         14        SEND_REF                                                 $7
         15        DO_ICALL                                                 
   37    16      > JMP                                                      ->4
         17    >   FE_FREE                                                  $4
   40    18      > RETURN                                                   null

End of function array_sort_by_column

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
291.79 ms | 974 KiB | 17 Q