3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding("UTF-8"); $mb_string = 'žščř'; $l=mb_strlen($mb_string); for($i=0;$i<$l;$i++) { print(mb_substr($mb_string,$i,1)."<br/>"); } $a = utf8_encode('Fön'); $b = unpack('C*', $a); var_dump($b); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ž<br/>š<br/>č<br/>ř<br/>array(6) { [1]=> int(70) [2]=> int(195) [3]=> int(131) [4]=> int(194) [5]=> int(182) [6]=> int(110) }