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;

preferences:
34.68 ms | 402 KiB | 5 Q