3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ["1","2"]; $b = ["2",3=>[]]; $out = array_udiff($a, $b, function($c, $d) { static $i = 0; echo ++$i. @": $c != $d= ".$c != $d.PHP_EOL; return $c != $d; }); var_dump($out);
Output for git.master, git.master_jit, rfc.property-hooks
1 Deprecated: array_udiff(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /in/aULfj on line 5 Warning: Array to string conversion in /in/aULfj on line 7 1 Warning: Array to string conversion in /in/aULfj on line 7 1111array(1) { [0]=> string(1) "1" }

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.21 ms | 402 KiB | 8 Q