3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $testSite = array( 'name' => 'test site', 'modules' => array( 'bar' => 'true' ) ); $testData = array( 'modules' => array( 'bar' => 'false' ) ); error_log('before ' . print_r($testSite, true)); $testSite = array_merge_recursive($testSite, $testData); error_log('after ' . print_r($testSite, true));
Output for 4.3.0 - 7.1.0
before Array ( [name] => test site [modules] => Array ( [bar] => true ) ) after Array ( [name] => test site [modules] => Array ( [bar] => Array ( [0] => true [1] => false ) ) )