3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('blue' => 1, 'red' => 2, 'green' => 3, 'purple' => 4); $array2 = array('green' => 5, 'red' => 6); print_r(array_intersect_key($array1, $array2,array('red')); ?>
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected ';' in /in/g2mV5 on line 5
Process exited with code 255.