3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // the Arabic (Hello) string below is: 59 bytes and 32 characters $utf8 = "السلام علیکم ورحمة الله وبرکاته!"; var_export( strlen($utf8) ); // 59 echo "<br>"; var_export( mb_strlen($utf8, 'utf8') ); // 32
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
59<br>32