3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.59 ms | 1395 KiB | 19 Q