3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'bcdfghjklmnpqrstvwxyz0123456789'; $vowels = array('a', 'e', 'i', 'o', 'u'); $vowels_a = 'aeiou'; for ($x=0,$r=null;$x<8;$x++) { if (in_array(substr($r,strlen($r)-1,1), $vowels)) { $r .= substr($vowels_a, mt_rand(0, strlen($vowels_a) - 1), 1); } else { $r .= substr($a, mt_rand(0, strlen($a) - 1), 1); } } echo $r;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 6
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 31
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 6
Branch analysis from position: 46
Branch analysis from position: 6
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 6
Branch analysis from position: 46
Branch analysis from position: 6
filename:       /in/VfqHs
function name:  (null)
number of ops:  48
compiled vars:  !0 = $a, !1 = $vowels, !2 = $vowels_a, !3 = $x, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bcdfghjklmnpqrstvwxyz0123456789'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 'aeiou'
    7     3        ASSIGN                                                   !3, 0
          4        ASSIGN                                                   !4, null
          5      > JMP                                                      ->44
    8     6    >   INIT_FCALL                                               'in_array'
          7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !4
          9        STRLEN                                           ~10     !4
         10        SUB                                              ~11     ~10, 1
         11        SEND_VAL                                                 ~11
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $12     
         14        SEND_VAR                                                 $12
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $13     
         17      > JMPZ                                                     $13, ->31
         18    >   INIT_FCALL                                               'substr'
         19        SEND_VAR                                                 !2
         20        INIT_FCALL                                               'mt_rand'
         21        SEND_VAL                                                 0
         22        STRLEN                                           ~14     !2
         23        SUB                                              ~15     ~14, 1
         24        SEND_VAL                                                 ~15
         25        DO_ICALL                                         $16     
         26        SEND_VAR                                                 $16
         27        SEND_VAL                                                 1
         28        DO_ICALL                                         $17     
         29        ASSIGN_OP                                     8          !4, $17
         30      > JMP                                                      ->43
    9    31    >   INIT_FCALL                                               'substr'
         32        SEND_VAR                                                 !0
         33        INIT_FCALL                                               'mt_rand'
         34        SEND_VAL                                                 0
         35        STRLEN                                           ~19     !0
         36        SUB                                              ~20     ~19, 1
         37        SEND_VAL                                                 ~20
         38        DO_ICALL                                         $21     
         39        SEND_VAR                                                 $21
         40        SEND_VAL                                                 1
         41        DO_ICALL                                         $22     
         42        ASSIGN_OP                                     8          !4, $22
    7    43    >   PRE_INC                                                  !3
         44    >   IS_SMALLER                                               !3, 8
         45      > JMPNZ                                                    ~25, ->6
   13    46    >   ECHO                                                     !4
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.78 ms | 1400 KiB | 19 Q