3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x1 = $x2 = $e = array(); $x3 = $x4 = $y = array('foo' => 'bar'); $x1 += $y; $x3 += $e; $x2 = array_merge($x2, $y); $x4 = array_merge($x4, $e); var_dump($x1); var_dump($x2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uAs30
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x1, !1 = $x2, !2 = $e, !3 = $x3, !4 = $x4, !5 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~6      !2, <array>
          1        ASSIGN                                           ~7      !1, ~6
          2        ASSIGN                                                   !0, ~7
    4     3        ASSIGN                                           ~9      !5, <array>
          4        ASSIGN                                           ~10     !4, ~9
          5        ASSIGN                                                   !3, ~10
    5     6        ASSIGN_OP                                     1          !0, !5
    6     7        ASSIGN_OP                                     1          !3, !2
    7     8        INIT_FCALL                                               'array_merge'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !5
         11        DO_ICALL                                         $14     
         12        ASSIGN                                                   !1, $14
    8    13        INIT_FCALL                                               'array_merge'
         14        SEND_VAR                                                 !4
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $16     
         17        ASSIGN                                                   !4, $16
    9    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   10    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.87 ms | 1395 KiB | 17 Q