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 ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
167.4 ms | 1632 KiB | 10 Q