3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.06 ms | 1394 KiB | 15 Q