3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array( -80, 00, 67, 00, 00, 00 ); //$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 - 7.1.0
str is: �C Notice: Array to string conversion in /in/OocuL on line 9 result is: Array
Output for 4.3.0 - 5.3.29
str is: �Cresult is: Array