3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $len = strlen($s); $m = ''; for ($i = 0; $i < $len; $i ++) { $m = $s[mt_rand(0, $len)]; } echo $m;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 6
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/bkrA7
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s, !1 = $len, !2 = $m, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
    3     1        STRLEN                                           ~5      !0
          2        ASSIGN                                                   !1, ~5
    4     3        ASSIGN                                                   !2, ''
    6     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->13
    7     6    >   INIT_FCALL                                               'mt_rand'
          7        SEND_VAL                                                 0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $9      
         10        FETCH_DIM_R                                      ~10     !0, $9
         11        ASSIGN                                                   !2, ~10
    6    12        PRE_INC                                                  !3
         13    >   IS_SMALLER                                               !3, !1
         14      > JMPNZ                                                    ~13, ->6
   10    15    >   ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1395 KiB | 15 Q