3v4l.org

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

Process exited with code 153.