3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.62 ms | 1395 KiB | 23 Q