3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $utf8string = "سلامجهان"; echo mb_substr($utf8string,0,5);
Output for 5.6.7 - 7.1.0
سلامج
Output for 4.3.0 - 5.5.35
سل�