3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pp = '12р.43коп.'; $pp = mb_substr($pp, 0, -8, 'UTF-8').'.'.mb_substr($pp, -6, 2, 'UTF-8'); //mb_substr(Yii::$app->user->identity->fathername, 0, 1, 'UTF-8') echo $pp;
based on 43ffp
Output for 4.3.0 - 7.2.0
12.43