3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($v1,$v2){ if($v1["id"]===$v2["id"]) return 0; else return -1; } $array2=NULL; $array=array( array("id"=>1,"data"=>1), array("id"=>1,"data"=>2), array("id"=>1,"data"=>3), array("id"=>3,"data"=>5), array("id"=>8,"data"=>1), array("id"=>10,"data"=>10) ); print_r(array_udiff_assoc($array, $array, null,'test'));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_udiff_assoc(): Argument #3 must be of type array, null given in /in/H39LI:16 Stack trace: #0 /in/H39LI(16): array_udiff_assoc(Array, Array, NULL, 'test') #1 {main} thrown in /in/H39LI on line 16
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:
45.46 ms | 401 KiB | 8 Q