3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $country_code = 'US'; $cn_array = array( 'AF' => 'AFGHANISTAN', 'US' => 'UNITED STATES', ); $country_name = $cn_array[$country_code]; echo $country_name;
based on 2r1L8
Output for 4.3.0 - 7.2.0
UNITED STATES