3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "The quick brown fox jumps over the lazy dog"; $c = 0; for($i = 0; $i < strlen($str); $i++) { if(in_array(substr($str,$i,1),array("a","e","i","o","u"))) $c++; } echo $c;
based on bncrF
Output for 4.3.0 - 7.1.0
11