3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = array( 'data' => array( array( 'raw' => array( 'key1' => array('value1', 'value1_1'), 'key3' => 'value3', ), ), ), ); $array2 = array( 'data' => array( array( 'raw' => array( 'key1' => 'value1_2', 'key2' => 'value2', ) ) ) ); $array1['data']=current($array1['data']); $array2['data']=current($array2['data']); var_export(array_merge_recursive($array1, $array2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6qBPf
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   13     1        ASSIGN                                                       !1, <array>
   24     2        INIT_FCALL                                                   'current'
          3        FETCH_DIM_R                                          ~5      !0, 'data'
          4        SEND_VAL                                                     ~5
          5        DO_ICALL                                             $6      
          6        ASSIGN_DIM                                                   !0, 'data'
          7        OP_DATA                                                      $6
   25     8        INIT_FCALL                                                   'current'
          9        FETCH_DIM_R                                          ~8      !1, 'data'
         10        SEND_VAL                                                     ~8
         11        DO_ICALL                                             $9      
         12        ASSIGN_DIM                                                   !1, 'data'
         13        OP_DATA                                                      $9
   26    14        INIT_FCALL                                                   'var_export'
         15        INIT_FCALL                                                   'array_merge_recursive'
         16        SEND_VAR                                                     !0
         17        SEND_VAR                                                     !1
         18        DO_ICALL                                             $10     
         19        SEND_VAR                                                     $10
         20        DO_ICALL                                                     
         21      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.51 ms | 2261 KiB | 16 Q