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/SDjl4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array, !1 = $details
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   66     1        INIT_FCALL                                               'unique_multidim_array'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !1, $3
   67     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function unique_multidim_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 42
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 42
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 40
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 25
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 40
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
filename:       /in/SDjl4
function name:  unique_multidim_array
number of ops:  45
compiled vars:  !0 = $array, !1 = $key, !2 = $temp_array, !3 = $i, !4 = $key_array, !5 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   44     2        ASSIGN                                                   !2, <array>
   45     3        ASSIGN                                                   !3, 0
   46     4        ASSIGN                                                   !4, <array>
   48     5      > FE_RESET_R                                       $9      !0, ->42
          6    > > FE_FETCH_R                                               $9, !5, ->42
   50     7    >   INIT_FCALL                                               'is_numeric'
          8        FETCH_DIM_R                                      ~10     !5, 0
          9        SEND_VAL                                                 ~10
         10        DO_ICALL                                         $11     
         11      > JMPZ                                                     $11, ->40
   52    12    >   INIT_FCALL                                               'array_search'
         13        FETCH_DIM_R                                      ~12     !5, !1
         14        SEND_VAL                                                 ~12
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $13     
         17        BOOL_NOT                                         ~14     $13
         18      > JMPZ                                                     ~14, ->25
   53    19    >   FETCH_DIM_R                                      ~16     !5, !1
         20        ASSIGN_DIM                                               !4, !3
         21        OP_DATA                                                  ~16
   54    22        ASSIGN_DIM                                               !2, !3
         23        OP_DATA                                                  !5
   52    24      > JMP                                                      ->40
   57    25    >   INIT_FCALL                                               'array_search'
         26        FETCH_DIM_R                                      ~18     !5, !1
         27        SEND_VAL                                                 ~18
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                         $19     
         30        FETCH_DIM_R                                      ~21     !5, !1
         31        ASSIGN_DIM                                               !4, $19
         32        OP_DATA                                                  ~21
   58    33        INIT_FCALL                                               'array_search'
         34        FETCH_DIM_R                                      ~22     !5, !1
         35        SEND_VAL                                                 ~22
         36        SEND_VAR                                                 !4
         37        DO_ICALL                                         $23     
         38        ASSIGN_DIM                                               !2, $23
         39        OP_DATA                                                  !5
   61    40    >   PRE_INC                                                  !3
   48    41      > JMP                                                      ->6
         42    >   FE_FREE                                                  $9
   63    43      > RETURN                                                   !2
   64    44*     > RETURN                                                   null

End of function unique_multidim_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
242.48 ms | 978 KiB | 17 Q