3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = '我改是打发斯蒂芬testse'; var_dump(str_split($str)); ?>
based on Y0Gf7
Output for 5.3.19 - 7.2.8
array(30) { [0]=> string(1) "�" [1]=> string(1) "�" [2]=> string(1) "�" [3]=> string(1) "�" [4]=> string(1) "�" [5]=> string(1) "�" [6]=> string(1) "�" [7]=> string(1) "�" [8]=> string(1) "�" [9]=> string(1) "�" [10]=> string(1) "�" [11]=> string(1) "�" [12]=> string(1) "�" [13]=> string(1) "�" [14]=> string(1) "�" [15]=> string(1) "�" [16]=> string(1) "�" [17]=> string(1) "�" [18]=> string(1) "�" [19]=> string(1) "�" [20]=> string(1) "�" [21]=> string(1) "�" [22]=> string(1) "�" [23]=> string(1) "�" [24]=> string(1) "t" [25]=> string(1) "e" [26]=> string(1) "s" [27]=> string(1) "t" [28]=> string(1) "s" [29]=> string(1) "e" }