3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cnStr = "中"; //utf8的中文 //unicode $code = unpack("H6codes", $cnStr); echo $code; //汉字 $cnStr = pack("H6", $code['codes']); echo $cnStr;
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/caVpd on line 7 Array中
Output for 4.3.0 - 5.3.29
Array中