3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TgYRq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $result, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'pack'
          2        INIT_FCALL                                               'array_merge'
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        SEND_ARRAY                                               $3
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0  $4      
          9        ASSIGN                                                   !1, $4
    7    10        NOP                                                      
         11        FAST_CONCAT                                      ~6      'str+is%3A+', !1
         12        ECHO                                                     ~6
    8    13        NOP                                                      
         14        FAST_CONCAT                                      ~7      'result+is%3A+', !0
         15        ECHO                                                     ~7
    9    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.9 ms | 1394 KiB | 17 Q