3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = ['id' => 12, 'bar' => 'foo', 'baz' => 'qux']; $b = ['id' => 12, 'bar' => 'foo', 'baz' => 'quxx']; var_dump(array_diff($a,$b));
based on cREZi
Output for 7.2.0 - 7.4.1
array(1) { ["baz"]=> string(3) "qux" }