3v4l.org

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