3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "LNGEDNA"; $count = pow(strlen($string), strlen($string)) - 1; $arr = str_split($string); $poss = ""; for($i = 0; $i < $count; $i++) { for($j = $i; $j < count($arr); $j++) { $poss .= $arr[$i]; } if($i > 0) { for($k = 0; $j < $j; $j++) { $poss .= $arr[$k]; } } $poss .= "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 16
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 33
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 28
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 16
Branch analysis from position: 37
Branch analysis from position: 16
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 28
Branch analysis from position: 33
Branch analysis from position: 28
Branch analysis from position: 33
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
Branch analysis from position: 18
filename:       /in/WXNiN
function name:  (null)
number of ops:  38
compiled vars:  !0 = $string, !1 = $count, !2 = $arr, !3 = $poss, !4 = $i, !5 = $j, !6 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'LNGEDNA'
    4     1        INIT_FCALL                                               'pow'
          2        STRLEN                                           ~8      !0
          3        SEND_VAL                                                 ~8
          4        STRLEN                                           ~9      !0
          5        SEND_VAL                                                 ~9
          6        DO_ICALL                                         $10     
          7        SUB                                              ~11     $10, 1
          8        ASSIGN                                                   !1, ~11
    6     9        INIT_FCALL                                               'str_split'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $13     
         12        ASSIGN                                                   !2, $13
    7    13        ASSIGN                                                   !3, ''
    8    14        ASSIGN                                                   !4, 0
         15      > JMP                                                      ->35
    9    16    >   ASSIGN                                                   !5, !4
         17      > JMP                                                      ->21
   10    18    >   FETCH_DIM_R                                      ~18     !2, !4
         19        ASSIGN_OP                                     8          !3, ~18
    9    20        PRE_INC                                                  !5
         21    >   COUNT                                            ~21     !2
         22        IS_SMALLER                                               !5, ~21
         23      > JMPNZ                                                    ~22, ->18
   13    24    >   IS_SMALLER                                               0, !4
         25      > JMPZ                                                     ~23, ->33
   14    26    >   ASSIGN                                                   !6, 0
         27      > JMP                                                      ->31
   15    28    >   FETCH_DIM_R                                      ~25     !2, !6
         29        ASSIGN_OP                                     8          !3, ~25
   14    30        PRE_INC                                                  !5
         31    >   IS_SMALLER                                               !5, !5
         32      > JMPNZ                                                    ~28, ->28
   19    33    >   ASSIGN_OP                                     8          !3, '%0A'
    8    34        PRE_INC                                                  !4
         35    >   IS_SMALLER                                               !4, !1
         36      > JMPNZ                                                    ~31, ->16
   20    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.7 ms | 1405 KiB | 17 Q