3v4l.org

run code in 500+ PHP versions simultaneously
<?php $num = 0; while($num != 40){ $alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789"; $pass = array(); //remember to declare $pass as an array $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache for ($i = 0; $i < 8; $i++) { $n = rand(0, $alphaLength); $pass[] = $alphabet[$n]; } //print_r ($pass); echo implode($pass) . PHP_EOL; $num++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
Branch analysis from position: 2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 9
Branch analysis from position: 20
Branch analysis from position: 9
filename:       /in/V3q8h
function name:  (null)
number of ops:  27
compiled vars:  !0 = $num, !1 = $alphabet, !2 = $pass, !3 = $alphaLength, !4 = $i, !5 = $n
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 0
    4     1      > JMP                                                          ->24
    5     2    >   ASSIGN                                                       !1, 'abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789'
    6     3        ASSIGN                                                       !2, <array>
    7     4        STRLEN                                               ~9      !1
          5        SUB                                                  ~10     ~9, 1
          6        ASSIGN                                                       !3, ~10
    8     7        ASSIGN                                                       !4, 0
          8      > JMP                                                          ->18
    9     9    >   INIT_FCALL                                                   'rand'
         10        SEND_VAL                                                     0
         11        SEND_VAR                                                     !3
         12        DO_ICALL                                             $13     
         13        ASSIGN                                                       !5, $13
   10    14        FETCH_DIM_R                                          ~16     !1, !5
         15        ASSIGN_DIM                                                   !2
         16        OP_DATA                                                      ~16
    8    17        PRE_INC                                                      !4
         18    >   IS_SMALLER                                                   !4, 8
         19      > JMPNZ                                                        ~18, ->9
   13    20    >   FRAMELESS_ICALL_1                implode             ~19     !2
         21        CONCAT                                               ~20     ~19, '%0A'
         22        ECHO                                                         ~20
   14    23        PRE_INC                                                      !0
    4    24    >   IS_NOT_EQUAL                                                 !0, 40
         25      > JMPNZ                                                        ~22, ->2
   15    26    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.06 ms | 1791 KiB | 14 Q