3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; $length = 11; for($i=0; $i<$length; $i++){ $ran = rand(11, strlen($alpha)-1); $key = substr($alpha, $ran, 1); } echo $key; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
filename:       /in/0fO1u
function name:  (null)
number of ops:  22
compiled vars:  !0 = $alpha, !1 = $length, !2 = $i, !3 = $ran, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'
    3     1        ASSIGN                                                   !1, 11
    5     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->18
    6     4    >   INIT_FCALL                                               'rand'
          5        SEND_VAL                                                 11
          6        STRLEN                                           ~8      !0
          7        SUB                                              ~9      ~8, 1
          8        SEND_VAL                                                 ~9
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !3, $10
    7    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 1
         15        DO_ICALL                                         $12     
         16        ASSIGN                                                   !4, $12
    5    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !1
         19      > JMPNZ                                                    ~15, ->4
    9    20    >   ECHO                                                     !4
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.66 ms | 1395 KiB | 17 Q