3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [ "foo" => "no", "foo_contact_firstname" => "Mark", "foo_email" => "mark@gmail.com", "foo_address1" => "91", "foo_address2" => "old road", "foo_bill" => "no", "bar" => "yes", "bar_contact_lastname" => null, "bar_telephone" => null, "bar_email" => null, "bar_address1" => null, "bar_address2" => null, "bar_address3" => null, "bar_address4" => null, "bar_address5" => null, "bar_postcode" => null, "register_contact_firstname" => null, "register_contact_lastname" => null, "register_telephone" => null, "register_email" => null, "register_address1" => null, "register_address2" => null, "register_address3" => null, "register_address4" => null, "register_address5" => null, "register_postcode" => null, ]; var_dump($array);
Output for 5.6.38 - 7.3.0rc2
array(26) { ["foo"]=> string(2) "no" ["foo_contact_firstname"]=> string(4) "Mark" ["foo_email"]=> string(14) "mark@gmail.com" ["foo_address1"]=> string(2) "91" ["foo_address2"]=> string(8) "old road" ["foo_bill"]=> string(2) "no" ["bar"]=> string(3) "yes" ["bar_contact_lastname"]=> NULL ["bar_telephone"]=> NULL ["bar_email"]=> NULL ["bar_address1"]=> NULL ["bar_address2"]=> NULL ["bar_address3"]=> NULL ["bar_address4"]=> NULL ["bar_address5"]=> NULL ["bar_postcode"]=> NULL ["register_contact_firstname"]=> NULL ["register_contact_lastname"]=> NULL ["register_telephone"]=> NULL ["register_email"]=> NULL ["register_address1"]=> NULL ["register_address2"]=> NULL ["register_address3"]=> NULL ["register_address4"]=> NULL ["register_address5"]=> NULL ["register_postcode"]=> NULL }