3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $accessible = array('title', 'description', 'category_ids'); $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 ( [0] => title [1] => description [2] => category_ids ) Array ( [0] => id [3] => permalink [4] => author_id [6] => pippo )