3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = array( b0, 00, 43, 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
Notice: Use of undefined constant b0 - assumed 'b0' in /in/aiFYl on line 2 str is: + Notice: Array to string conversion in /in/aiFYl on line 9 result is: Array
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant b0 - assumed 'b0' in /in/aiFYl on line 2 str is: +result is: Array