3v4l.org

run code in 300+ 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 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 2
Branch analysis from position: 28
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 = 28, Position 2 = 2
Branch analysis from position: 28
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:  29
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                                                      ->26
    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    >   INIT_FCALL                                               'implode'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $19     
         23        CONCAT                                           ~20     $19, '%0A'
         24        ECHO                                                     ~20
   14    25        PRE_INC                                                  !0
    4    26    >   IS_NOT_EQUAL                                             !0, 40
         27      > JMPNZ                                                    ~22, ->2
   15    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.19 ms | 1000 KiB | 15 Q