3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'test' => 'test', 'toto' => 'toto', ]; $res= array_merge([ 'test' => 'test_ov', ], $data + ['end' => 0]); var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NFig5
function name:  (null)
number of ops:  11
compiled vars:  !0 = $data, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_merge'
    9     2        SEND_VAL                                                 <array>
   10     3        ADD                                              ~3      !0, <array>
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
    8     6        ASSIGN                                                   !1, $4
   12     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.89 ms | 1394 KiB | 17 Q