3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1[0] = ['user_id' => 1, 'username' => 'bob']; $arr1[1] = ['user_id' => 2, 'username' => 'tom']; //and $arr2[0] = ['user_id' => 2, 'username' => 'tom']; $arr2[1] = ['user_id' => 3, 'username' => 'john']; $arr2[2] = ['user_id' => 21, 'username' => 'taisha']; $arr2[3] = ['user_id' => 1, 'username' => 'bob']; var_export ( array_udiff( $arr2, $arr1, fn($a, $b) => $a <=> $b ) );
Output for rfc.property-hooks, git.master, git.master_jit
array ( 1 => array ( 'user_id' => 3, 'username' => 'john', ), 2 => array ( 'user_id' => 21, 'username' => 'taisha', ), )

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:
50.25 ms | 1260 KiB | 4 Q