3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "The quick brown fox jumps over the lazy dog"; $c = 0; for($i = 0; $i < strlen($str); $i++) { if(in_array(substr($str,$i,1),array("a","e","i","o","u"))) $c++; } echo $c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 12
filename:       /in/TYG2E
function name:  (null)
number of ops:  18
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, 0
          3      > JMP                                                      ->13
    5     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !2
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $6      
          9        IN_ARRAY                                                 $6, <array>
         10      > JMPZ                                                     ~7, ->12
         11    >   PRE_INC                                                  !1
    4    12    >   PRE_INC                                                  !2
         13    >   STRLEN                                           ~10     !0
         14        IS_SMALLER                                               !2, ~10
         15      > JMPNZ                                                    ~11, ->4
    7    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1395 KiB | 15 Q