3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.43 ms | 1394 KiB | 17 Q