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 Hmmda
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in /in/jat9j on line 7
Process exited with code 255.
Output for hhvm-3.15.4
string(2) "US"