3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $♫ = "music"; var_dump( $♫ ); // string(5) "music" $start = 0; $string = "♫"; var_dump($len = mb_strlen("♫", '8bit')); echo mb_substr($string, $start, $len);
Output for 4.3.0 - 7.2.0
string(5) "music" int(3) ♫