3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <?php $base = array('citrus' => array("orange") , 'berries' => array("blackberry", "raspberry"), 'others' => 'banana' ); $replacements = array('citrus' => 'pineapple', 'berries' => array('blueberry'), 'others' => array('litchis')); $replacements2 = array('citrus' => array('pineapple'), 'berries' => array('blueberries'), 'others' => 'litchis'); $basket = array_replace_recursive($base, $replacements, $replacements2); print_r($basket);
Output for 5.3.0 - 5.4.4
Parse error: syntax error, unexpected '<' in /in/Lnge2 on line 2
Process exited with code 255.