3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1395 KiB | 17 Q