3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a='ddd王多多'; echo mb_substr($a,0,2,'utf-8'); exit;
based on OsNXf
Output for 5.3.20 - 7.3.0beta1
dd