3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0, $c = 0, $str = "The quick brown fox jumps over the lazy dog."; $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/6Drrc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $c, !2 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 0
          2        ASSIGN                                                   !2, 'The+quick+brown+fox+jumps+over+the+lazy+dog.'
          3      > JMP                                                      ->13
    3     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !2
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $6      
          9        IN_ARRAY                                                 $6, <array>
         10      > JMPZ                                                     ~7, ->12
         11    >   PRE_INC                                                  !1
    2    12    >   PRE_INC                                                  !0
         13    >   STRLEN                                           ~10     !2
         14        IS_SMALLER                                               !0, ~10
         15      > JMPNZ                                                    ~11, ->4
    5    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.77 ms | 1395 KiB | 15 Q