3v4l.org

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