3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.81 ms | 1395 KiB | 17 Q