3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
,<?php $test_arr['X'][] = array( 'Show/Episode is unpublished, or need to add a correct Show ID to COMPASS SHOW INFO section', 'par_1' => '1', 'par_2' => '2', ); $arr_2 = array(); $arr_2 = array_merge(array(), $test_arr); $arr_2['X'][0] = 'NEW'; print_r($arr_2);
based on B179X
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Do2YC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $test_arr, !1 = $arr_2
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   1     0  E >   ECHO                                                     '%2C'
   2     1        FETCH_DIM_W                                      $2      !0, 'X'
         2        ASSIGN_DIM                                               $2
   3     3        OP_DATA                                                  <array>
   7     4        ASSIGN                                                   !1, <array>
   8     5        INIT_FCALL                                               'array_merge'
         6        SEND_VAL                                                 <array>
         7        SEND_VAR                                                 !0
         8        DO_ICALL                                         $5      
         9        ASSIGN                                                   !1, $5
   9    10        FETCH_DIM_W                                      $7      !1, 'X'
        11        ASSIGN_DIM                                               $7, 0
        12        OP_DATA                                                  'NEW'
  12    13        INIT_FCALL                                               'print_r'
        14        SEND_VAR                                                 !1
        15        DO_ICALL                                                 
        16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0