3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 'permissions2', 'this2', 'test'); $toost = array('permissions2', 'this2'); // $yo = array_diff($toost, $test); if (in_array($toost, $test)) print_r(array_diff($test, $toost)); else print('it is false');

preferences:
44.26 ms | 402 KiB | 5 Q