3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ'; $alphabet_length = strlen($alphabet); $password = ''; $len = 8; for ($i = 0; $i < $len; ++$i) { $password .= $alphabet[ord($random[$i]) % $alphabet_length]; } var_dump($password);
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 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/rqDT6
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $alphabet_length, !2 = $alphabet, !3 = $password, !4 = $len, !5 = $i, !6 = $random
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E1%83%90%E1%83%91%E1%83%92%E1%83%93%E1%83%94%E1%83%95%E1%83%96%E1%83%97%E1%83%98%E1%83%99%E1%83%9A%E1%83%9B%E1%83%9C%E1%83%9D%E1%83%9E%E1%83%9F%E1%83%A0%E1%83%A1%E1%83%A2%E1%83%A3%E1%83%A4%E1%83%A5%E1%83%A6%E1%83%A7%E1%83%A8%E1%83%A9%E1%83%AA%E1%83%AB%E1%83%AC%E1%83%AD%E1%83%AE%E1%83%AF%E1%83%B0'
    3     1        STRLEN                                           ~8      !2
          2        ASSIGN                                                   !1, ~8
    4     3        ASSIGN                                                   !3, ''
    5     4        ASSIGN                                                   !4, 8
    6     5        ASSIGN                                                   !5, 0
          6      > JMP                                                      ->15
    7     7    >   INIT_FCALL                                               'ord'
          8        FETCH_DIM_R                                      ~13     !6, !5
          9        SEND_VAL                                                 ~13
         10        DO_ICALL                                         $14     
         11        MOD                                              ~15     $14, !1
         12        FETCH_DIM_R                                      ~16     !2, ~15
         13        ASSIGN_OP                                     8          !3, ~16
    6    14        PRE_INC                                                  !5
         15    >   IS_SMALLER                                               !5, !4
         16      > JMPNZ                                                    ~19, ->7
    9    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155 ms | 1395 KiB | 17 Q