3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_country_code() { $cc = 'RU'; return $cc; } function get_country_name() { $cn_array = array( 'COUNTRY_NAME' => array( 'AF' => 'Afghanistan', 'US' => 'United Snakes', 'RU' => 'VodkaTown', ), ); $country_code = get_country_code(); $country_name = $cn_array['COUNTRY_NAME'][$country_code]; echo $country_name; } get_country_name();
based on heQMj
Output for 4.3.0 - 7.2.0
VodkaTown