3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array ( '00180000015oGSWAA2' => array ( 'accountId' => '00180000015oGSWAA2', 'npi' => '1053576223', 'firstname' => 'Jack', 'lastname' => 'Cheng', 'title' => '', 'accountLastModifiedDate' => '2014-09-09 17:37:15', 'suffix' => '', 'fax' => '', 'address1' => '853 N CHURCH ST', 'city' => 'SPARTANBURG', 'stateLicensedId' => '31191', 'state' => 'SC', 'phone' => '', 'zip' => '29303', 'address2' => '', 'addressLastModifiedDate' => '2014-09-04 08:44:17', ), '00180000015oGeXAAU' => array ( 'accountId' => '00180000015oGeXAAU', 'npi' => '1629067301', 'firstname' => 'Fred', 'lastname' => 'Thaler', 'title' => '', 'accountLastModifiedDate' => '2014-09-09 17:36:41', 'suffix' => '', 'fax' => '', 'address1' => '1 PEARL ST', 'city' => 'BROCKTON', 'stateLicensedId' => '58249', 'state' => 'MA', 'phone' => '', 'zip' => '2301', 'address2' => '', 'addressLastModifiedDate' => '2014-09-04 04:25:44', ) ); $b = array( '001S000000nBvryIAC' => array ( 'tid' => '04T800000008zySEAQ', 'acsLastModifiedDate' => '2015-01-06 17:19:48', ), '00180000015oGeXAAU' => array ( 'tid' => '04T800000008zzgEAA', 'acsLastModifiedDate' => '2015-01-07 04:06:40', ), '001S000000nYWcYIAW' => array ( 'tid' => '04T800000008zySEAQ', 'acsLastModifiedDate' => '2015-02-25 15:45:01', ), ); $c = array_merge_recursive($a,$b); echo "<PrE>"; print_r($c);
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<PrE>Array ( [00180000015oGSWAA2] => Array ( [accountId] => 00180000015oGSWAA2 [npi] => 1053576223 [firstname] => Jack [lastname] => Cheng [title] => [accountLastModifiedDate] => 2014-09-09 17:37:15 [suffix] => [fax] => [address1] => 853 N CHURCH ST [city] => SPARTANBURG [stateLicensedId] => 31191 [state] => SC [phone] => [zip] => 29303 [address2] => [addressLastModifiedDate] => 2014-09-04 08:44:17 ) [00180000015oGeXAAU] => Array ( [accountId] => 00180000015oGeXAAU [npi] => 1629067301 [firstname] => Fred [lastname] => Thaler [title] => [accountLastModifiedDate] => 2014-09-09 17:36:41 [suffix] => [fax] => [address1] => 1 PEARL ST [city] => BROCKTON [stateLicensedId] => 58249 [state] => MA [phone] => [zip] => 2301 [address2] => [addressLastModifiedDate] => 2014-09-04 04:25:44 [tid] => 04T800000008zzgEAA [acsLastModifiedDate] => 2015-01-07 04:06:40 ) [001S000000nBvryIAC] => Array ( [tid] => 04T800000008zySEAQ [acsLastModifiedDate] => 2015-01-06 17:19:48 ) [001S000000nYWcYIAW] => Array ( [tid] => 04T800000008zySEAQ [acsLastModifiedDate] => 2015-02-25 15:45:01 ) )

preferences:
287.85 ms | 410 KiB | 312 Q