3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars="qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP";$max=8;$size=StrLen($chars)-1;$password=null; while($max--) echo $passwordgen=$chars[rand(0,$size)];
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 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
filename:       /in/tbFqX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $chars, !1 = $max, !2 = $size, !3 = $password, !4 = $passwordgen
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP'
          1        ASSIGN                                                   !1, 8
          2        STRLEN                                           ~7      !0
          3        SUB                                              ~8      ~7, 1
          4        ASSIGN                                                   !2, ~8
          5        ASSIGN                                                   !3, null
          6      > JMP                                                      ->14
          7    >   INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 0
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        FETCH_DIM_R                                      ~12     !0, $11
         12        ASSIGN                                           ~13     !4, ~12
         13        ECHO                                                     ~13
         14    >   POST_DEC                                         ~14     !1
         15      > JMPNZ                                                    ~14, ->7
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.56 ms | 1395 KiB | 15 Q