3v4l.org

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