3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 0=>array( 'arrival' => 1, 'uid' => 1 ), 1=>array( 'arrival' => 0, 'uid' => 2 ) ); $b = array( 0=>array( 'arrival' => 1, 'uid' => 1 ) ); var_dump(array_udiff($a, $b, 'diff')); function diff($a, $b) { return $a - $b; }
based on uMUeo
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Unsupported operand types in /in/vBpBV:21 Stack trace: #0 [internal function]: diff(Array, Array) #1 /in/vBpBV(19): array_udiff(Array, Array, 'diff') #2 {main} thrown in /in/vBpBV on line 21
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Unsupported operand types in /in/vBpBV on line 21
Process exited with code 255.