3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $accessible = array(); $attributes = array('id', 'title', 'description', 'permalink', 'author_id', 'category_ids', 'pippo'); print_r(array_intersect($accessible, $attributes)); print_r(array_diff($attributes, $accessible));
Output for 4.3.0 - 7.1.0
Array ( ) Array ( [0] => id [1] => title [2] => description [3] => permalink [4] => author_id [5] => category_ids [6] => pippo )