3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'bcdfghjklmnpqrstvwxyz'; $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 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 6
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 32
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 6
Branch analysis from position: 47
Branch analysis from position: 6
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 6
Branch analysis from position: 47
Branch analysis from position: 6
filename:       /in/rPH26
function name:  (null)
number of ops:  49
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, 'bcdfghjklmnpqrstvwxyz'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, 'aeiou'
    7     3        ASSIGN                                                   !3, 0
          4        ASSIGN                                                   !4, null
          5      > JMP                                                      ->45
    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        BOOL_NOT                                         ~14     $13
         18      > JMPZ                                                     ~14, ->32
         19    >   INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !2
         21        INIT_FCALL                                               'mt_rand'
         22        SEND_VAL                                                 0
         23        STRLEN                                           ~15     !2
         24        SUB                                              ~16     ~15, 1
         25        SEND_VAL                                                 ~16
         26        DO_ICALL                                         $17     
         27        SEND_VAR                                                 $17
         28        SEND_VAL                                                 1
         29        DO_ICALL                                         $18     
         30        ASSIGN_OP                                     8          !4, $18
         31      > JMP                                                      ->44
    9    32    >   INIT_FCALL                                               'substr'
         33        SEND_VAR                                                 !0
         34        INIT_FCALL                                               'mt_rand'
         35        SEND_VAL                                                 0
         36        STRLEN                                           ~20     !0
         37        SUB                                              ~21     ~20, 1
         38        SEND_VAL                                                 ~21
         39        DO_ICALL                                         $22     
         40        SEND_VAR                                                 $22
         41        SEND_VAL                                                 1
         42        DO_ICALL                                         $23     
         43        ASSIGN_OP                                     8          !4, $23
    7    44    >   PRE_INC                                                  !3
         45    >   IS_SMALLER                                               !3, 8
         46      > JMPNZ                                                    ~26, ->6
   13    47    >   ECHO                                                     !4
         48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.05 ms | 1392 KiB | 19 Q