3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 7.0.0 - 7.1.0
<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.
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, hhvm-3.12.0
<pre><hr> Fatal error: Call to undefined function single_diff_assoc() in /in/UWjdI on line 46
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.19
<pre><hr> Fatal error: Call to undefined function single_diff_assoc() in /in/Gt9EA on line 46
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<pre><hr> Fatal error: Call to undefined function: single_diff_assoc() in /in/Gt9EA on line 46
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<pre><hr> Fatal error: Call to undefined function: single_diff_assoc() in /in/Gt9EA on line 46
Process exited with code 255.
Output for 4.3.1
<pre><hr> Fatal error: Call to undefined function: single_diff_assoc() in /in/Gt9EA on line 46
Output for 4.3.0
<pre><hr> Fatal error: Call to undefined function: single_diff_assoc() in /in/UWjdI on line 46