3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( 'permissions', 'this'); $toost = array('this2', 'permissions2'); $yo = array_intersect($test, $toost); if ($yo) print_r($yo);

preferences:
31.62 ms | 402 KiB | 5 Q