3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.53 ms | 1386 KiB | 17 Q