3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.12 ms | 1395 KiB | 23 Q