3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "သဥ℃ဢ"; for ($i = 0; $i < mb_strlen($str); $i++) { var_dump(mb_substr($str, $i, 1)); }
Output for 5.6.8 - 7.1.0
string(3) "သ" string(3) "ဥ" string(3) "℃" string(3) "ဢ"
Output for 4.3.0 - 5.5.35
string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�"