3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hubspot_country = 'United State'; $country_map = array('United States' => 'US'); $address_part = 'country'; $admin_contact_information = array(); $admin_contact_information[$address_part] = isset($country_map[$hubspot_country]) ? $country_map[$hubspot_country] : 'no set'; var_dump($admin_contact_information[$address_part]); ?>
based on DivuJ
Output for 5.6.0 - 5.6.38, hhvm-3.18.4 - 3.22.0, 7.0.1 - 7.2.11
string(6) "no set"
Output for 7.0.0
Could not open input file: /in/RAXCo
Process exited with code 1.
Output for hhvm-3.15.4

Process exited with code 137.