3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = [1,2,3]; $arr2 = [2,3,4]; print_r(array_intersect($arr1, $arr2));
based on dPlWc
Output for 5.4.11 - 7.2.0
Array ( [1] => 2 [2] => 3 )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/H6DVk on line 3
Process exited with code 255.