3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.58 ms | 1399 KiB | 17 Q