3v4l.org

run code in 300+ PHP versions simultaneously
<?php $letters = 'abcdefghjklmnpqrstuvwxyz'; $numbers = '23456789'; $number_count = \strlen($numbers); $letter_count = \strlen($letters); $pass = ''; while (\strlen($pass) < 9) { $pass .= $letters[\random_int(0, $letter_count - 1)]; } while (\strlen($pass) < 12) { $pass .= $numbers[\random_int(0, $number_count - 1)]; } echo $pass;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 19
Branch analysis from position: 29
Branch analysis from position: 19
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/qU2AO
function name:  (null)
number of ops:  31
compiled vars:  !0 = $letters, !1 = $numbers, !2 = $number_count, !3 = $letter_count, !4 = $pass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abcdefghjklmnpqrstuvwxyz'
    4     1        ASSIGN                                                   !1, '23456789'
    6     2        STRLEN                                           ~7      !1
          3        ASSIGN                                                   !2, ~7
    7     4        STRLEN                                           ~9      !0
          5        ASSIGN                                                   !3, ~9
    9     6        ASSIGN                                                   !4, ''
   11     7      > JMP                                                      ->15
   12     8    >   INIT_FCALL                                               'random_int'
          9        SEND_VAL                                                 0
         10        SUB                                              ~12     !3, 1
         11        SEND_VAL                                                 ~12
         12        DO_ICALL                                         $13     
         13        FETCH_DIM_R                                      ~14     !0, $13
         14        ASSIGN_OP                                     8          !4, ~14
   11    15    >   STRLEN                                           ~16     !4
         16        IS_SMALLER                                               ~16, 9
         17      > JMPNZ                                                    ~17, ->8
   15    18    > > JMP                                                      ->26
   16    19    >   INIT_FCALL                                               'random_int'
         20        SEND_VAL                                                 0
         21        SUB                                              ~18     !2, 1
         22        SEND_VAL                                                 ~18
         23        DO_ICALL                                         $19     
         24        FETCH_DIM_R                                      ~20     !1, $19
         25        ASSIGN_OP                                     8          !4, ~20
   15    26    >   STRLEN                                           ~22     !4
         27        IS_SMALLER                                               ~22, 12
         28      > JMPNZ                                                    ~23, ->19
   19    29    >   ECHO                                                     !4
   20    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.08 ms | 1011 KiB | 14 Q