3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = '{\"Result\":{\"IsOk\":true,\"ErrorMessage\":\"\"},\"BillingID\":3034653,\"CustomerNr\":null,\"CampaignNr\":\"M1600-22\",\"CustomerAddress\":{\"CountryName\":\"Canada\",\"LanguageCode\":\"en\",\"Company\":null,\"Title\":\"Mr.\",\"Firstname\":\"Louis\",\"Lastname\":\"Richard\",\"AdditionalName\":\"\",\"Street\":\"4234 Highway 357 \",\"AdditionalStreet1\":\"\",\"AdditionalStreet2\":\"\",\"AdditionalStreet3\":\"\",\"AdditionalStreet4\":\"\",\"PoBox\":\"\",\"Zip\":\"B0N 1V0\",\"Area\":\"NS\",\"City\":\"Meaghers Grant\"},\"MerchantAddress\":{\"CountryName\":\"Canada\",\"LanguageCode\":\"en\",\"Company\":\"Maître Ritter Int.\",\"Title\":null,\"Firstname\":null,\"Lastname\":null,\"AdditionalName\":null,\"Street\":null,\"AdditionalStreet1\":null,\"AdditionalStreet2\":null,\"AdditionalStreet3\":null,\"AdditionalStreet4\":null,\"PoBox\":\"Postbus 202\",\"Zip\":\"3720 AE\",\"Area\":\"AE\",\"City\":\"Bilthoven\"}}'; var_dump(json_decode(stripslashes($text), true ));
Output for 5.2.0 - 7.1.0
array(6) { ["Result"]=> array(2) { ["IsOk"]=> bool(true) ["ErrorMessage"]=> string(0) "" } ["BillingID"]=> int(3034653) ["CustomerNr"]=> NULL ["CampaignNr"]=> string(8) "M1600-22" ["CustomerAddress"]=> array(16) { ["CountryName"]=> string(6) "Canada" ["LanguageCode"]=> string(2) "en" ["Company"]=> NULL ["Title"]=> string(3) "Mr." ["Firstname"]=> string(5) "Louis" ["Lastname"]=> string(7) "Richard" ["AdditionalName"]=> string(0) "" ["Street"]=> string(17) "4234 Highway 357 " ["AdditionalStreet1"]=> string(0) "" ["AdditionalStreet2"]=> string(0) "" ["AdditionalStreet3"]=> string(0) "" ["AdditionalStreet4"]=> string(0) "" ["PoBox"]=> string(0) "" ["Zip"]=> string(7) "B0N 1V0" ["Area"]=> string(2) "NS" ["City"]=> string(14) "Meaghers Grant" } ["MerchantAddress"]=> array(16) { ["CountryName"]=> string(6) "Canada" ["LanguageCode"]=> string(2) "en" ["Company"]=> string(21) "Maître Ritter Int." ["Title"]=> NULL ["Firstname"]=> NULL ["Lastname"]=> NULL ["AdditionalName"]=> NULL ["Street"]=> NULL ["AdditionalStreet1"]=> NULL ["AdditionalStreet2"]=> NULL ["AdditionalStreet3"]=> NULL ["AdditionalStreet4"]=> NULL ["PoBox"]=> string(11) "Postbus 202" ["Zip"]=> string(7) "3720 AE" ["Area"]=> string(2) "AE" ["City"]=> string(9) "Bilthoven" } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/onaNL on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/onaNL on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/onaNL on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/onaNL on line 6