3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array( 'permissions2', 'this2', 'test'); $toost = array('this2', 'permissions2'); $yo = array_diff($test, $toost); if ($yo) print_r($yo); else print('it is boolean false');
Output for 4.3.0 - 7.1.7
Array ( [2] => test )