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 $c;

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
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 = 12, Position 2 = 13
Branch analysis from position: 12
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: 13
filename:       /in/YfXll
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, 1
          3      > JMP                                                      ->14
    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
    4    13    >   PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, 44
         15      > JMPNZ                                                    ~11, ->4
    7    16    >   ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.44 ms | 1395 KiB | 15 Q