3v4l.org

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