3v4l.org

run code in 300+ PHP versions simultaneously
<?php $market_data_array =array ( 'Turkey' => array ( 'Gold' => array ( 2020 => array ( 'March' => array ( 12 => 25000 ), ), ), ), ); $country_name = 'Turkey'; $rates_property_type = 'Silver'; $year = '2020'; $month = 'March'; $day_date = '12'; $rate_today = 8000; $new_market_data = array( "".$country_name."" => array( "".$rates_property_type."" => array( "".$year."" => array( "".$month."" => array( "".$day_date."" => "".$rate_today."", ), ), ), ), ); $market_data_array = array_merge_recursive($market_data_array, $new_market_data); print_r($market_data_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [Turkey] => Array ( [Gold] => Array ( [2020] => Array ( [March] => Array ( [12] => 25000 ) ) ) [Silver] => Array ( [2020] => Array ( [March] => Array ( [12] => 8000 ) ) ) ) )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.95 ms | 407 KiB | 5 Q