3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hubspot_country = 'United'; $country_map = array('United States' => 'US'); $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 EKsjS
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
Notice: Undefined index: country in /in/WXXfQ on line 7 NULL