3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 38; $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890-_'; for ($x=0; $x<$n; $x++) { $c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890'; if (($x<$n) && ($x > 0)) { $c .= '-_'; } $r .= substr($c, mt_rand(0, strlen($c) - 1), 1); } echo $r;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
Branch analysis from position: 11
Branch analysis from position: 9
filename:       /in/hfm7l
function name:  (null)
number of ops:  28
compiled vars:  !0 = $n, !1 = $c, !2 = $x, !3 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 38
    3     1        ASSIGN                                                   !1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890-_'
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->24
    6     4    >   ASSIGN                                                   !1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890'
    7     5        IS_SMALLER                                       ~8      !2, !0
          6      > JMPZ_EX                                          ~8      ~8, ->9
          7    >   IS_SMALLER                                       ~9      0, !2
          8        BOOL                                             ~8      ~9
          9    > > JMPZ                                                     ~8, ->11
         10    >   ASSIGN_OP                                     8          !1, '-_'
    8    11    >   INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !1
         13        INIT_FCALL                                               'mt_rand'
         14        SEND_VAL                                                 0
         15        STRLEN                                           ~11     !1
         16        SUB                                              ~12     ~11, 1
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                         $13     
         19        SEND_VAR                                                 $13
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $14     
         22        ASSIGN_OP                                     8          !3, $14
    5    23        PRE_INC                                                  !2
         24    >   IS_SMALLER                                               !2, !0
         25      > JMPNZ                                                    ~17, ->4
   11    26    >   ECHO                                                     !3
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1396 KiB | 17 Q