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 D5rnZ
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.6
Parse error: syntax error, unexpected ')' in /in/Hmmda on line 7
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected ')' in /in/Hmmda:7 Stack trace: #0 {main}
Process exited with code 255.