3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "♥♫ღ♪½Σ"; $strlen = mb_strlen($str); echo $strlen,"\n"; $cut = mb_strcut($str,0,6); echo $cut;
based on C7lNK
Output for 5.6.8 - 7.3.0beta1
6 ♥♫
Output for 5.3.18 - 5.5.35
16 ♥♫