3v4l.org

run code in 200+ PHP versions simultaneously
<?php $a = ['id' => 12, 'bar' => 'foo', 'baz' => 'qux', 'buz' => ['quxxx' => 'biz']]; $b = ['id' => 12, 'bar' => 'foo', 'baz' => 'quxx', 'buz' => ['quxxx' => 'biz']]; var_dump(array_diff($a,$b));
based on ZGvBd
Output for 7.2.0 - 7.4.1
Notice: Array to string conversion in /in/fpFtq on line 6 Notice: Array to string conversion in /in/fpFtq on line 6 array(1) { ["baz"]=> string(3) "qux" }