3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_diff(['slow', 'pure', '64-bit int'], ['slow'])); var_dump(array_intersect(['slow', 'xxx'], ['slow', 'pure', '64-bit int']));
based on Y05Y9
Output for 5.4.9 - 7.2.0
array(2) { [1]=> string(4) "pure" [2]=> string(10) "64-bit int" } array(1) { [0]=> string(4) "slow" }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/reIB3 on line 3
Process exited with code 255.