3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(0 => 'non'); $array2 = array(0 => 'non', 1 => 'qwerty'); print_r(array_intersect($array1, $array2)); print_r($array1);
based on qYSL8
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Array ( [0] => non ) Array ( [0] => non )