3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = array("@[а-я]@"); $r = array("*"); $fam = "Перегудов"; echo preg_replace("@[а-я]@", "*", $fam); echo preg_replace($s, $r, $fam);
Output for 4.3.0 - 7.1.0
*�***�*****�*******�***�*****�******