3v4l.org

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