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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
before Array ( [name] => test site [modules] => Array ( [bar] => 1 ) ) after Array ( [name] => test site [modules] => Array ( [bar] => Array ( [0] => 1 [1] => ) ) )