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_intersect_assoc($a1, $a2));
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/dSTpR on line 16 Notice: Array to string conversion in /in/dSTpR on line 16 array(3) { ["port"]=> int(0) ["version"]=> int(0) ["options"]=> array(1) { ["timeout"]=> int(5) } }
Output for 4.3.0 - 5.3.29
array(3) { ["port"]=> int(0) ["version"]=> int(0) ["options"]=> array(1) { ["timeout"]=> int(5) } }