3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '这是一个长度47个字符的中文字符串'; echo mb_strlen($str); // 17
based on irP5f
Output for 5.6.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
17
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.5.38
47
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/XnlIV on line 4
Process exited with code 255.