3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hubspot_country = 'US'; $country_map = array('US' => 'United States'); $address_part = 'country'; $admin_contact_information = array(); isset($country_map[$hubspot_country]) ? $admin_contact_information[$address_part] = $country_map[$hubspot_country] : 'US'; var_dump($admin_contact_information[$address_part]); ?>
based on h3vTW
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
string(13) "United States"