3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i1 = array('61','506', '333'); $i2 = array('506', '333', '777'); print_r(array_intersect($i2, $i1)); print_r(array_intersect($i1, $i2));
based on B2QBT
Output for 5.6.0 - 7.3.0rc4
Array ( [0] => 506 [1] => 333 ) Array ( [1] => 506 [2] => 333 )