3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "♫"; $len = mb_strlen($string, '8bit'); function substr_unicode($str, $s, $l = null) { return join("", array_slice( preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY), $s, $l)); } echo ord(mb_substr($string, 0, $len))." ";
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
226
Output for hhvm-3.10.0

Process exited with code 153.