3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; function asdf($string){ for ($i=strlen($string); $i >= 0 ; $i--) { if (strpos("aeiouAEIOU", substr($string, $i, 1)) !== false) { return substr_replace($string, "", $i, 1); } } return $string; } echo asdf($string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UofTV
function name:  (null)
number of ops:  6
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'This+is+a+string+of+words+with+multiple+vowels.'
   12     1        INIT_FCALL                                               'asdf'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function asdf:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 4
Branch analysis from position: 25
Branch analysis from position: 4
filename:       /in/UofTV
function name:  asdf
number of ops:  27
compiled vars:  !0 = $string, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        STRLEN                                           ~2      !0
          2        ASSIGN                                                   !1, ~2
          3      > JMP                                                      ->23
    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                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        TYPE_CHECK                                  1018          $5
         14      > JMPZ                                                     ~6, ->22
    7    15    >   INIT_FCALL                                               'substr_replace'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 ''
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $7      
         21      > RETURN                                                   $7
    5    22    >   PRE_DEC                                                  !1
         23    >   IS_SMALLER_OR_EQUAL                                      0, !1
         24      > JMPNZ                                                    ~9, ->4
   10    25    > > RETURN                                                   !0
   11    26*     > RETURN                                                   null

End of function asdf

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.22 ms | 1390 KiB | 20 Q