Author: DrLenux
License: MIT
<?php
$a = ['a' => 1, 'b' => 2, 'd' => 4];
$b = ['a' => 2, 'b' => 2, 'c' => 3];
\DrLenux\ArrayDiff::getDiff($a, $b);
return
<?php
[
'a' => [
'new' => 2,
'old' => 1
],
'c' => [
'new' => 3
],
'd' => [
'old' => 4
]
];