3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pole1 = array(1,15,18,19,22); $pole2 = array(2,7,18,19,23); $pole3 = array_diff($pole1, $pole2); var_dump($pole3); echo "\n\r"; var_dump(array_diff($pole2, $pole3));
Output for 4.3.0 - 7.1.0
array(3) { [0]=> int(1) [1]=> int(15) [4]=> int(22) } array(5) { [0]=> int(2) [1]=> int(7) [2]=> int(18) [3]=> int(19) [4]=> int(23) }