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(substr($str,$i-1,$i),array("a","e","i","o","u"))) $c++; echo substr($str,$i-1,$i)."\n"; } echo $c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/A1QLN
function name:  (null)
number of ops:  26
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                                                      ->22
    5     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SUB                                              ~6      !2, 1
          7        SEND_VAL                                                 ~6
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $7      
         10        IN_ARRAY                                                 $7, <array>
         11      > JMPZ                                                     ~8, ->13
         12    >   PRE_INC                                                  !1
    6    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SUB                                              ~10     !2, 1
         16        SEND_VAL                                                 ~10
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $11     
         19        CONCAT                                           ~12     $11, '%0A'
         20        ECHO                                                     ~12
    4    21        PRE_INC                                                  !2
         22    >   IS_SMALLER                                               !2, 44
         23      > JMPNZ                                                    ~14, ->4
    8    24    >   ECHO                                                     !1
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.21 ms | 1395 KiB | 15 Q