3v4l.org

run code in 300+ PHP versions simultaneously
<?php $set = array_merge(range('a', 'z'), range('A', 'Z'),range(0, 9), ['-']); $out = ''; for($i=0; $i<35; $i++) { $out .= $set[mt_rand(0, length($set))]; } echo $out;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 22
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 22
Branch analysis from position: 34
Branch analysis from position: 22
filename:       /in/ev2pP
function name:  (null)
number of ops:  36
compiled vars:  !0 = $set, !1 = $out, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_merge'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 'a'
          3        SEND_VAL                                                 'z'
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        INIT_FCALL_BY_NAME                                       '%C2%A0range'
          7        SEND_VAL_EX                                              'A'
          8        SEND_VAL_EX                                              'Z'
          9        DO_FCALL                                      0  $4      
         10        SEND_VAR                                                 $4
         11        INIT_FCALL                                               'range'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 9
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        SEND_VAL                                                 <array>
         17        DO_ICALL                                         $6      
         18        ASSIGN                                                   !0, $6
    3    19        ASSIGN                                                   !1, ''
    4    20        ASSIGN                                                   !2, 0
         21      > JMP                                                      ->32
    5    22    >   INIT_FCALL                                               'mt_rand'
         23        SEND_VAL                                                 0
         24        INIT_FCALL_BY_NAME                                       'length'
         25        SEND_VAR_EX                                              !0
         26        DO_FCALL                                      0  $10     
         27        SEND_VAR                                                 $10
         28        DO_ICALL                                         $11     
         29        FETCH_DIM_R                                      ~12     !0, $11
         30        ASSIGN_OP                                     8          !1, ~12
    4    31        PRE_INC                                                  !2
         32    >   IS_SMALLER                                               !2, 35
         33      > JMPNZ                                                    ~15, ->22
    7    34    >   ECHO                                                     !1
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.61 ms | 1388 KiB | 19 Q