3v4l.org

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