3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array ( 'productcode' => 218133, 'categoryid' => 315, 'color' => 'red' ); $array2 = array (10,220); $array1['categoryid'] = array_merge((array)$array1['categoryid'], $array2); print_r($array1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RCHjZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_merge'
          3        FETCH_DIM_R                                      ~5      !0, 'categoryid'
          4        CAST                                          7  ~6      ~5
          5        SEND_VAL                                                 ~6
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN_DIM                                               !0, 'categoryid'
          9        OP_DATA                                                  $7
    7    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.06 ms | 1394 KiB | 17 Q