3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<br>vocales = 4