3v4l.org

run code in 300+ PHP versions simultaneously
<?php $saved = array( array( 'domain' => 'mydomain.com', 'record' => 'A', 'value' => '8.8.8.8' ), array( 'domain' => 'mydomain.com', 'record' => 'NS', 'value' => 'ns1.mydomain.com' ) ); $new = array( array( 'domain' => 'mydomain.com', 'record' => 'A', 'value' => '4.4.4.4' ), array( 'domain' => 'mydomain.com', 'record' => 'NS', 'value' => 'ns1.mydomain.com' ), array( 'domain' => 'sub.mydomain.com', 'record' => 'A', 'value' => '1.2.3.4' ), ); $combined = array_merge($saved, $new); var_dump(array_udiff_uassoc($saved, $new, 'cmpr')); function cmpr($a, $b) { foreach($a as $k=>$v) { if ($b[$k] !== $v) return 1; } return 0; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: array_udiff_uassoc(): Argument #2 must be a valid callback, array callback must have exactly two members in /in/NSoUM:16 Stack trace: #0 /in/NSoUM(16): array_udiff_uassoc(Array, Array, 'cmpr') #1 {main} thrown in /in/NSoUM 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:
60.2 ms | 401 KiB | 8 Q