3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_diff_assoc( array( 'ZWEI', 'foo' => 'FOO', 'bar' => 'FOO', 'a' => 'A', 'b' => 'B', 2 => 'ZWEI', 3 => 'ZWEI', 4 => 'ZWEI', ), array( 'ZWEI', 'foo' => 'BAR', 'bar' => 'BAR', 'b' => 'A', 'c' => 'B', 3 => 'ZWEI', ) ));
Output for 4.3.0 - 7.2.0
array(6) { ["foo"]=> string(3) "FOO" ["bar"]=> string(3) "FOO" ["a"]=> string(1) "A" ["b"]=> string(1) "B" [2]=> string(4) "ZWEI" [4]=> string(4) "ZWEI" }