3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tab1 = array(10,13,15,18); $tab2 = array(13,10,18,23); $merge = array_intersect($tab1, $tab2); echo '<pre>'.print_r($merge,true).'</pre>';
Output for 4.3.0 - 7.2.0
<pre>Array ( [0] => 10 [1] => 13 [3] => 18 ) </pre>