3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $values = array( 4515, 4516, 4517, 4518, 4519, 4602, 4603, 4604, 4605, 4606, 4607 ); foreach ($values as $v) { $p=pack('N1', $v); $sw=mb_strwidth($p, 'UCS-4BE'); echo "$sw\n"; }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.8
2 2 2 2 2 2 2 2 2 2 2
Output for hhvm-3.15.4
1 1 1 1 1 1 1 1 1 1 1