3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $resp = '{"result":"SUCCESS","code":"3003","message":"Congratulations! You have been registered successfully to Wowcher.","data":{"alias":null,"tags":null,"apiLocationsVO":null,"apiAddressReferencesVO":null,"apiAddressVO":null,"apiDealsVO":null,"apiMultiLocationDealsVO":null,"apiDealVO":null,"apiFeaturedDealVO":null,"apiDealStatusVO":null,"apiRequestPurchase":null,"apiSubscriptionVO":null,"apiUserDealInfoVO":null,"isNewEmail":false,"apiAuthToken":null,"facebookStatus":null,"subscriptionsCount":"4","paypalDirectEnabled":null},"fieldErrors":null}'; $responseArray = json_decode($body, true); var_dump($responseArray['data']['isNewEmail']);
Output for 5.2.0 - 7.2.6
Notice: Undefined variable: body in /in/2g3JT on line 5 NULL
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/2g3JT on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/2g3JT on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/2g3JT on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/2g3JT on line 5