3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = []; $b = [['id'=>'foo'],['id'=>'bar']]; $c = [['id'=>'biz'],['id'=>'baz']]; $result = [['id'=>'foo'],['id'=>'bar'],['id'=>'biz'],['id'=>'baz']]; $d = array_merge($a,$b,$c); var_dump($d === $result, $d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tXFcg
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $result, !4 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, <array>
    7     4        INIT_FCALL                                               'array_merge'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !4, $9
    8    10        INIT_FCALL                                               'var_dump'
         11        IS_IDENTICAL                                     ~11     !4, !3
         12        SEND_VAL                                                 ~11
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.67 ms | 1394 KiB | 17 Q