3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('a'=>array(1), 'b'=>'fool'); $b = array('c'=>array(2), 'd'=>'ofyou'); var_dump(array_diff($a, $b));
based on MHrUe
Output for hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/Ig4rc on line 5 Notice: Array to string conversion in /in/Ig4rc on line 5 array(1) { ["b"]=> string(4) "fool" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/Ig4rc on line 5 Notice: Array to string conversion in /in/Ig4rc on line 5 Notice: Array to string conversion in /in/Ig4rc on line 5 Notice: Array to string conversion in /in/Ig4rc on line 5 Notice: Array to string conversion in /in/Ig4rc on line 5 array(1) { ["b"]=> string(4) "fool" }
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.3.29
array(1) { ["b"]=> string(4) "fool" }
Output for 5.1.0

Process exited with code 137.