3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = ['a', 'b', 'c']; $b = [ 23 => 'x', 'y', 'z' ]; $c = array_merge($a, $b); $d = $a + $b; print_r(compact('a', 'b', 'c', 'd')); $a = ['a' => 'a', 'b' => 'b', 'c' => 'c']; $b = [ 23 => 'x', 'y', 'z' ]; $c = array_merge($a, $b); $d = $a + $b; print_r(compact('a', 'b', 'c', 'd'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OiZht
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        INIT_FCALL                                                   'array_merge'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                             $6      
          6        ASSIGN                                                       !2, $6
    6     7        ADD                                                  ~8      !0, !1
          8        ASSIGN                                                       !3, ~8
    8     9        INIT_FCALL                                                   'print_r'
         10        INIT_FCALL                                                   'compact'
         11        SEND_VAL                                                     'a'
         12        SEND_VAL                                                     'b'
         13        SEND_VAL                                                     'c'
         14        SEND_VAL                                                     'd'
         15        DO_ICALL                                             $10     
         16        SEND_VAR                                                     $10
         17        DO_ICALL                                                     
   11    18        ASSIGN                                                       !0, <array>
   12    19        ASSIGN                                                       !1, <array>
   13    20        INIT_FCALL                                                   'array_merge'
         21        SEND_VAR                                                     !0
         22        SEND_VAR                                                     !1
         23        DO_ICALL                                             $14     
         24        ASSIGN                                                       !2, $14
   14    25        ADD                                                  ~16     !0, !1
         26        ASSIGN                                                       !3, ~16
   16    27        INIT_FCALL                                                   'print_r'
         28        INIT_FCALL                                                   'compact'
         29        SEND_VAL                                                     'a'
         30        SEND_VAL                                                     'b'
         31        SEND_VAL                                                     'c'
         32        SEND_VAL                                                     'd'
         33        DO_ICALL                                             $18     
         34        SEND_VAR                                                     $18
         35        DO_ICALL                                                     
         36      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.6 ms | 2353 KiB | 16 Q