3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array( 'host' => '', 'port' => 0, 'version' => 0, 'options' => array('timeout' => 5) ); $a2 = array( 'host' => '', 'port' => 0, 'version' => 0, 'options' => array('timeout' => 5) ); var_dump(array_diff($a1, $a2));
Output for 7.0.0 - 7.2.6
Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 array(0) { }
Output for 5.4.0 - 5.6.28
Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 Notice: Array to string conversion in /in/ukOSt on line 16 array(0) { }
Output for 4.3.0 - 5.3.29
array(0) { }