3v4l.org

run code in 300+ PHP versions simultaneously
<?php $events = array( // Sept 10 2018 array( 2018 => array( 9 => array( 10 => array( 'event01' ) ) ) ), // Sept 20 2018 array( 2018 => array( 9 => array( 20 => array( 'event02' ) ) ) ), // Oct 5 2019 array( 2018 => array( 10 => array( 5 => array( 'event03' ) ) ) ) ); $merged = array_replace_recursive(...$events); print_r($merged);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BP556
function name:  (null)
number of ops:  10
compiled vars:  !0 = $events, !1 = $merged
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   36     1        INIT_FCALL                                               'array_replace_recursive'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   38     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.07 ms | 1009 KiB | 15 Q