3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<pre>'; $bdd['80395']= array('80396','80397','80398','777'); $folder['80395']= array('80396','80397','666','80398','154223'); $folder['80397']= array('34','35','36','45','57'); echo '<hr>'; function multidimensional_array_diff($a1,$a2) { $r = array(); foreach ($a2 as $key => $second) { foreach ($a1 as $key => $first) { if (isset($a2[$key])) { foreach ($first as $first_value) { foreach ($second as $second_value) { if ($first_value == $second_value) { $true = true; break; } } if (!isset($true)) { $r[$key][] = $first_value; } unset($true); } } else { $r[$key] = $first; } } } return $r; } print_r(single_diff_assoc($folder,$bdd));
Output for git.master, git.master_jit, rfc.property-hooks
<pre><hr> Fatal error: Uncaught Error: Call to undefined function single_diff_assoc() in /in/UWjdI:46 Stack trace: #0 {main} thrown in /in/UWjdI on line 46
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:
30.03 ms | 401 KiB | 8 Q