3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array ( 'nested' => array ( 'orig' => 1, 'numarr' => array( 1, 2, 3, 4, 5 ) ) ); // array2 $array2 = array ( 'nested' => Array ( 'numarr' => Array ( 6, 7 ) ) ); $newArray['nested']['orig'] = $array1['nested']['orig']; $newArray['nested']['numarr'] = $array2['nested']['numarr']; print_r($newArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQ9Wf
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array1, !1 = $array2, !2 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, <array>
   25     2        FETCH_DIM_R                                      ~7      !0, 'nested'
          3        FETCH_DIM_R                                      ~8      ~7, 'orig'
          4        FETCH_DIM_W                                      $5      !2, 'nested'
          5        ASSIGN_DIM                                               $5, 'orig'
          6        OP_DATA                                                  ~8
   26     7        FETCH_DIM_R                                      ~11     !1, 'nested'
          8        FETCH_DIM_R                                      ~12     ~11, 'numarr'
          9        FETCH_DIM_W                                      $9      !2, 'nested'
         10        ASSIGN_DIM                                               $9, 'numarr'
         11        OP_DATA                                                  ~12
   28    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.48 ms | 1394 KiB | 15 Q