3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $country_code = 'US'; $cn_array = array('COUNTRY_NAME' => array( 'AF' => 'AFGHANISTAN', 'US' => 'UNITED STATES', ) ); $country_name = $cn_array['COUNTRY_NAME'.$country_code]; echo $country_name;
based on KF5u0
Output for 5.3.0 - 7.2.0
Notice: Undefined index: COUNTRY_NAMEUS in /in/EejFH on line 11
Output for 4.3.0 - 5.2.17
Notice: Undefined index: COUNTRY_NAMEUS in /in/EejFH on line 11