3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;
Output for 7.0.0 - 7.1.0
Warning: strpos(): Empty needle in /in/4jjRt on line 6 This is a string of words with multiple vowls.
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
This is a string of words with multiple vowls.