3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = ["a" => 1, "b" => 2, "c" => 3]; $input = ["d" => 4, "b" => 10]; $new = $source + ($source + $input); print_r($new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H0FFP
function name:  (null)
number of ops:  9
compiled vars:  !0 = $source, !1 = $input, !2 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ADD                                              ~5      !0, !1
          3        ADD                                              ~6      !0, ~5
          4        ASSIGN                                                   !2, ~6
    8     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.18 ms | 996 KiB | 14 Q