array_diff_uassoc

Supported Versions: PHP 5, PHP 7, PHP 8
Computes the difference of arrays with additional index check which is performed by a user supplied callback function
array_diff_uassoc(array $array, array ...$arrays, callable $key_compare_func): array
    public function diffAssocUsing($items, callable $callback)

    {

        return new static(
array_diff_uassoc($this->items$this->getArrayableItems($items), $callback));

    }