3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $main_array = array( 1 => array('ceva'), 2 => array('cevaa'), 21 => 3 ); $sub_array = array( 1 => array('ceva'), 2 => array(1, 2), 12 => 2 ); echo '<pre>'; var_dump(array_diff_assoc($main_array, $sub_array)); echo '</pre>';
Output for 5.4.0 - 7.1.0
<pre> Notice: Array to string conversion in /in/6ujX5 on line 16 Notice: Array to string conversion in /in/6ujX5 on line 16 Notice: Array to string conversion in /in/6ujX5 on line 16 Notice: Array to string conversion in /in/6ujX5 on line 16 array(1) { [21]=> int(3) } </pre>
Output for 4.3.0 - 5.3.29
<pre>array(1) { [21]=> int(3) } </pre>