3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array( "\xb0\x00", "\x43\x00", "\x00\x00" ); //$result = "\ub000\u4300\u0000"; $str = call_user_func_array("pack", array_merge(array("C*"), $result)); echo "str is: $str"; echo "result is: $result"; ?>
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
str is: Notice: Array to string conversion in /in/TgYRq on line 8 result is: Array
Output for 4.3.0 - 5.3.29
str is: result is: Array