3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aa = [ 'schemas', 'id', 'externalId', 'meta', 'userName', 'active', 'emails', 'orgname', 'department', 'roles', 'address', 'phoneNumbers' ]; $attributes = ['schemas', 'id', 'externalId']; $re = array_diff($attributes, $aa); var_dump($re);