3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = [ ['id' => 3, 'other' => 'some string', 'timestamp' => '2000-01-01 12:12:12'], ['id' => 4, 'other' => 'some string', 'timestamp' => '1900-01-01 01:12:23'], ['id' => 5, 'other' => 'toker', 'timestamp' => '1900-04-20 00:04:20'], ]; $filterBy = [ ['id' => 3, 'other' => 'some string', 'timestamp' => '2000-01-01 00:00:00'], ['id' => 5, 'other' => 'toker', 'timestamp' => '1900-04-20 00:04:20'], ]; var_dump( array_udiff( $input, $filterBy, fn($a, $b) => $a <=> $b ) );
Output for git.master, git.master_jit
array(2) { [0]=> array(3) { ["id"]=> int(3) ["other"]=> string(11) "some string" ["timestamp"]=> string(19) "2000-01-01 12:12:12" } [1]=> array(3) { ["id"]=> int(4) ["other"]=> string(11) "some string" ["timestamp"]=> string(19) "1900-01-01 01:12:23" } }

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:
40.28 ms | 1016 KiB | 4 Q