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; $market_data_array[$country_name][$rates_property_type][$year][$month][$day_date] = $rate_today; print_r($market_data_array);
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
Array ( [Turkey] => Array ( [Gold] => Array ( [2020] => Array ( [March] => Array ( [12] => 25000 ) ) ) [Silver] => Array ( [2020] => Array ( [March] => Array ( [12] => 8000 ) ) ) ) )
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
142.92 ms | 408 KiB | 5 Q