3v4l.org

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