3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "The quick brown fox jumps over the lazy dog"; $c = 0; for($i = 1; $i < 44; $i++) { if(in_array(array("a","e","i","o","u"),substr($str,$i-1,$i))) $c++; } echo $c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
Branch analysis from position: 16
filename:       /in/OumRK
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $c, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'The+quick+brown+fox+jumps+over+the+lazy+dog'
    3     1        ASSIGN                                                   !1, 0
    4     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->17
    5     4    >   INIT_FCALL                                               'in_array'
          5        SEND_VAL                                                 <array>
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SUB                                              ~6      !2, 1
          9        SEND_VAL                                                 ~6
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14      > JMPZ                                                     $8, ->16
         15    >   PRE_INC                                                  !1
    4    16    >   PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, 44
         18      > JMPNZ                                                    ~11, ->4
    7    19    >   ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.17 ms | 1395 KiB | 17 Q