<?php
$a1 = range(1, 2000000);
$a2 = range(100000, 2999999);
array_intersect($a1, $a2);
?>