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/Slc7j
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'One'
          2        OP_DATA                                                  1
    4     3        ASSIGN_DIM                                               !0, 'Two'
          4        OP_DATA                                                  2
    5     5        ASSIGN_DIM                                               !0, 'Three'
          6        OP_DATA                                                  3
    6     7        ASSIGN_DIM                                               !0, 'Four'
          8        OP_DATA                                                  4
   29     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'generatepermutations'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0  $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Function generatepermutations:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 18
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 55
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 55
Branch analysis from position: 26
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 50
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 50
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 37, Position 2 = 44
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 49
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 49
Branch analysis from position: 44
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 50
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 55
Branch analysis from position: 23
filename:       /in/Slc7j
function name:  generatePermutations
number of ops:  58
compiled vars:  !0 = $array, !1 = $permutations, !2 = $pairs, !3 = $i, !4 = $value, !5 = $key, !6 = $value2, !7 = $key2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN                                                   !1, <array>
   10     2        ASSIGN                                                   !2, <array>
   11     3        ASSIGN                                                   !3, 0
   12     4      > FE_RESET_R                                       $11     !0, ->23
          5    > > FE_FETCH_R                                       ~12     $11, !4, ->23
          6    >   ASSIGN                                                   !5, ~12
   13     7      > FE_RESET_R                                       $14     !0, ->18
          8    > > FE_FETCH_R                                       ~15     $14, !6, ->18
          9    >   ASSIGN                                                   !7, ~15
   14    10        IS_IDENTICAL                                             !5, !7
         11      > JMPZ                                                     ~17, ->13
         12    > > JMP                                                      ->8
   15    13    >   INIT_ARRAY                                       ~19     !5
         14        ADD_ARRAY_ELEMENT                                ~19     !7
         15        ASSIGN_DIM                                               !1
         16        OP_DATA                                                  ~19
   13    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $14
   17    19        INIT_FCALL                                               'array_shift'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                                 
   12    22      > JMP                                                      ->5
         23    >   FE_FREE                                                  $11
   19    24      > FE_RESET_R                                       $21     !1, ->55
         25    > > FE_FETCH_R                                       ~22     $21, !4, ->55
         26    >   ASSIGN                                                   !5, ~22
   20    27      > FE_RESET_R                                       $24     !1, ->50
         28    > > FE_FETCH_R                                       ~25     $24, !6, ->50
         29    >   ASSIGN                                                   !7, ~25
   21    30        INIT_FCALL                                               'in_array'
         31        FETCH_DIM_R                                      ~27     !6, 0
         32        SEND_VAL                                                 ~27
         33        SEND_VAR                                                 !4
         34        DO_ICALL                                         $28     
         35        BOOL_NOT                                         ~29     $28
         36      > JMPZ_EX                                          ~29     ~29, ->44
         37    >   INIT_FCALL                                               'in_array'
         38        FETCH_DIM_R                                      ~30     !6, 1
         39        SEND_VAL                                                 ~30
         40        SEND_VAR                                                 !4
         41        DO_ICALL                                         $31     
         42        BOOL_NOT                                         ~32     $31
         43        BOOL                                             ~29     ~32
         44    > > JMPZ                                                     ~29, ->49
   22    45    >   INIT_ARRAY                                       ~34     !4
         46        ADD_ARRAY_ELEMENT                                ~34     !6
         47        ASSIGN_DIM                                               !2
         48        OP_DATA                                                  ~34
   20    49    > > JMP                                                      ->28
         50    >   FE_FREE                                                  $24
   25    51        INIT_FCALL                                               'array_shift'
         52        SEND_REF                                                 !1
         53        DO_ICALL                                                 
   19    54      > JMP                                                      ->25
         55    >   FE_FREE                                                  $21
   27    56      > RETURN                                                   !2
   28    57*     > RETURN                                                   null

End of function generatepermutations

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.48 ms | 1029 KiB | 17 Q