3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $first = Array(607,608,609,610); $second = Array(607,608,609,800); $Fcount = count($first); $arr = array_merge($first, $second); $arrc= key(array_diff($arr, array_diff_assoc($arr, array_unique($arr)))); echo $arrc;
based on BBgKT
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
3