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);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [2] => Array ( [date] => 07-01-2019 [total] => 25 ) [3] => Array ( [date] => 08-01-2019 [total] => 50 ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
127.95 ms | 406 KiB | 5 Q