3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( array( 'arrival' => 1, 'uid' => 1 ), array( 'arrival' => 0, 'uid' => 2 ) ); $b = array( array( 'arrival' => 1, 'uid' => 1 ) ); var_dump(array_diff($a, $b));
Output for 7.0.0 - 7.2.0
Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 array(0) { }
Output for 5.4.9 - 5.6.28
Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 Notice: Array to string conversion in /in/R8g03 on line 19 array(0) { }
Output for 5.3.19 - 5.3.29
array(0) { }