3v4l.org

run code in 300+ PHP versions simultaneously
<?php $there = [1,2,3,4]; $notThere = [1, 5, 6, 4]; print_r(array_diff($notThere, $there));

preferences:
38.79 ms | 402 KiB | 5 Q