3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a string of words with multiple vowels.'; echo preg_replace('/([aeiou]{1})([^aeiou]*)$/i', '$2', $string);

preferences:
42.23 ms | 402 KiB | 5 Q