3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string='maría'; $vocales = preg_match_all('/[aeiouáéíó]/i',$string, $matchesV); echo "<br>vocales = $vocales"; if ((in_array('á',$matchesV))||(in_array('é',$matchesV)) || (in_array('í',$matchesV)) || (in_array('ó',$matchesV))){ $v = $vocales - 1; echo "<br>v $v"; echo '<br>1'; }
Output for 4.3.0 - 7.2.0
<br>vocales = 4