3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $source_packages = array( 'one' => array ('param1' => 'First Parameter for One', 'param2' => 'Second Parameter for One'), 'two' => array ('param1' => 'First Parameter for Two', 'param2' => 'Second Parameter for Two') ); $result_packages = array_diff_assoc($source_packages, array('two' => array ('param1' => 'First Parameter for Two', 'param2' => 'Second Parameter for Two'))); var_dump($result_packages); echo "<br />\n";
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/GcTLJ on line 7 Notice: Array to string conversion in /in/GcTLJ on line 7 array(1) { ["one"]=> array(2) { ["param1"]=> string(23) "First Parameter for One" ["param2"]=> string(24) "Second Parameter for One" } } <br />
Output for 4.3.0 - 5.3.29
array(1) { ["one"]=> array(2) { ["param1"]=> string(23) "First Parameter for One" ["param2"]=> string(24) "Second Parameter for One" } } <br />