3v4l.org

run code in 300+ PHP versions simultaneously
<?php $defaults = array( 'lang' => 'de', 'be' => 11, 'ce' => 16 ); $given = array( 'lang' => '', 'be' => 12, 'asas'=> 'basas' ); $a = array_merge($given, $defaults); $b = array_merge($defaults, $a); print_r($b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pp84b
function name:  (null)
number of ops:  16
compiled vars:  !0 = $defaults, !1 = $given, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'array_merge'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !2, $6
   14     7        INIT_FCALL                                               'array_merge'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
   15    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.88 ms | 1394 KiB | 17 Q