3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $source = mb_convert_encoding('test', "UTF-16LE", "utf-8"); $source = unpack('C*', $source); var_dump($source);
based on h7Uft
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(8) { [1]=> int(116) [2]=> int(0) [3]=> int(101) [4]=> int(0) [5]=> int(115) [6]=> int(0) [7]=> int(116) [8]=> int(0) }