3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; $found = false; $newstr = ""; for ($i=strlen($string); $i >= 0 ; $i--) { $chr = substr($string, $i, 1); if (!$found && stripos("aeiou", $chr) !== false) { $found = true; continue; } $newstr = $chr . $newstr; } return $newstr;

preferences:
30.19 ms | 402 KiB | 5 Q