3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array( 'host' => '', 'port' => 0, 'version' => 0, 'options' => array('timeout' => 5) ); $a2 = array( 'host' => 'asas', 'port' => 0, 'version' => 0, 'options' => array('timeout' => 6) ); var_dump(array_diff_assoc($a1, $a2));
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/o1OYm on line 16 Notice: Array to string conversion in /in/o1OYm on line 16 array(1) { ["host"]=> string(0) "" }
Output for 4.3.0 - 5.3.29
array(1) { ["host"]=> string(0) "" }