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 -1)]; } return $m;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/jiGmY
function name:  (null)
number of ops:  18
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                                                      ->14
    7     6    >   INIT_FCALL                                               'mt_rand'
          7        SEND_VAL                                                 0
          8        SUB                                              ~9      !1, 1
          9        SEND_VAL                                                 ~9
         10        DO_ICALL                                         $10     
         11        FETCH_DIM_R                                      ~11     !0, $10
         12        ASSIGN                                                   !2, ~11
    6    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !1
         15      > JMPNZ                                                    ~14, ->6
   10    16    > > RETURN                                                   !2
         17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1395 KiB | 15 Q