3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: array - array 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.

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:
49.43 ms | 401 KiB | 8 Q