3v4l.org

run code in 300+ PHP versions simultaneously
<?php function brut36($A="0123456789", $N=1) { $base="0123456789abcdefghijklmnopqrstuvwxyz"; $b=strlen($A); $count=pow($b, $N); for ($i=0;$i<$count;$i++) echo strtr(str_pad(base_convert($i, 10, $b), $N, "0", STR_PAD_LEFT), $base, $A),"\r\n"; } brut36("01", 3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Q9Gv
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'brut36'
          1        SEND_VAL                                                 '01'
          2        SEND_VAL                                                 3
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function brut36:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 12
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 12
Branch analysis from position: 33
Branch analysis from position: 12
filename:       /in/7Q9Gv
function name:  brut36
number of ops:  34
compiled vars:  !0 = $A, !1 = $N, !2 = $base, !3 = $b, !4 = $count, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      '0123456789'
          1        RECV_INIT                                        !1      1
    5     2        ASSIGN                                                   !2, '0123456789abcdefghijklmnopqrstuvwxyz'
    6     3        STRLEN                                           ~7      !0
          4        ASSIGN                                                   !3, ~7
    7     5        INIT_FCALL                                               'pow'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !4, $9
    8    10        ASSIGN                                                   !5, 0
         11      > JMP                                                      ->31
    9    12    >   INIT_FCALL                                               'strtr'
         13        INIT_FCALL                                               'str_pad'
         14        INIT_FCALL                                               'base_convert'
         15        SEND_VAR                                                 !5
         16        SEND_VAL                                                 10
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        SEND_VAR                                                 !1
         21        SEND_VAL                                                 '0'
   10    22        SEND_VAL                                                 0
         23        DO_ICALL                                         $13     
         24        SEND_VAR                                                 $13
         25        SEND_VAR                                                 !2
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $14     
         28        ECHO                                                     $14
         29        ECHO                                                     '%0D%0A'
    8    30        PRE_INC                                                  !5
         31    >   IS_SMALLER                                               !5, !4
         32      > JMPNZ                                                    ~16, ->12
   11    33    > > RETURN                                                   null

End of function brut36

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.85 ms | 1403 KiB | 22 Q