3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; for ($i=strlen($string); $i >= 0 ; $i--) { if (strpos("aeiouAEIOU", substr($string, $i, 1)) !== false) { echo substr_replace($string, "", $i, 1); exit(); } } echo $string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 4
Branch analysis from position: 26
Branch analysis from position: 4
filename:       /in/4jjRt
function name:  (null)
number of ops:  28
compiled vars:  !0 = $string, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+is+a+string+of+words+with+multiple+vowels.'
    5     1        STRLEN                                           ~3      !0
          2        ASSIGN                                                   !1, ~3
          3      > JMP                                                      ->24
    6     4    >   INIT_FCALL                                               'strpos'
          5        SEND_VAL                                                 'aeiouAEIOU'
          6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 1
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        TYPE_CHECK                                  1018          $6
         14      > JMPZ                                                     ~7, ->23
    7    15    >   INIT_FCALL                                               'substr_replace'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 ''
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $8      
         21        ECHO                                                     $8
    8    22      > EXIT                                                     
    5    23    >   PRE_DEC                                                  !1
         24    >   IS_SMALLER_OR_EQUAL                                      0, !1
         25      > JMPNZ                                                    ~10, ->4
   11    26    >   ECHO                                                     !0
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.88 ms | 1396 KiB | 19 Q