3v4l.org

run code in 500+ PHP versions simultaneously
<?php $events = array( // Sept 10 2018 array( 2018 => array( 9 => array( 10 => array( 'event01', 'event01b', ) ) ) ), // 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/a07Io
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>
   37     1        INIT_FCALL                                                   'array_replace_recursive'
          2        SEND_UNPACK                                                  !0
          3        CHECK_UNDEF_ARGS                                             
          4        DO_ICALL                                             $3      
          5        ASSIGN                                                       !1, $3
   39     6        INIT_FCALL                                                   'print_r'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.56 ms | 2214 KiB | 15 Q