3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrIncome = [ [ 'date' => '01-01-2019', 'total' => '500', ], [ 'date' => '02-01-2019', 'total' => '200', ], [ 'date' => '03-01-2019', 'total' => '300', ], [ 'date' => '04-01-2019', 'total' => '900', ], ]; $arrExpense= [ [ 'date' => '01-01-2019', 'total' => '50', ], [ 'date' => '02-01-2019', 'total' => '60', ], [ 'date' => '07-01-2019', 'total' => '25', ], [ 'date' => '08-01-2019', 'total' => '50', ], ]; $arrExpense = array_filter($arrExpense, function ($v) use ($arrIncome) { return !in_array($v['date'], array_column($arrIncome, 'date')); }); print_r($arrExpense);

preferences:
31.41 ms | 407 KiB | 5 Q