3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '{ "_id": { "$oid" : "5303793d901d202e228b4567" }, "timestamp": { "$date": 1392736573000 }, "priority": 6, "priorityName": "INFO", "message": "{\"request\":{\"url\":{},\"data\":\"<?xml version=\\\"1.0\\\"?>\\n<ASSUR_REQUEST type=\\\"COTA\\\"><REQUEST_ORIGIN>CA</REQUEST_ORIGIN><QUOTATION_DATE><DAY/><MONTH/><YEAR/></QUOTATION_DATE><CAR><VEHICLE><GTA_CODE>RE07001</GTA_CODE><DATE_OF_FIRST_USAGE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2003</YEAR></DATE_OF_FIRST_USAGE><DATE_OF_PURCHASE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2014</YEAR></DATE_OF_PURCHASE><OWNERSHIP/><NIGHT_PARKING_TYPE/><GARAGE_POST_CODE>37000</GARAGE_POST_CODE><WORK_POST_CODE>37000</WORK_POST_CODE><USAGE>1</USAGE><ANNUAL_MILEAGE/><COVERAGE>E</COVERAGE></VEHICLE><CAR_OWNING_STATUS/><MAIN_DRIVER><GENDER/><BIRTH_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>1993</YEAR></BIRTH_DATE><MARITAL_STATUS/><OCCUPATION/><CURRENTLY_INSURED/><HAS_BEEN_INSURED>O</HAS_BEEN_INSURED><CONTINUOUS_COVERAGE>3</CONTINUOUS_COVERAGE><LAPSE>3</LAPSE><BONUS>175</BONUS><YEARS_OF_BONUS_50/><DRIVING_LICENSE_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>2011</YEAR></DRIVING_LICENSE_DATE><LICENSE_OBTAINMENT_MODE/><DUI_CONVICTION/><LICENSE_REVOKED>N</LICENSE_REVOKED><INSURANCE_CANCELED>N</INSURANCE_CANCELED><NON_INSURANCE_CONVICTION/><LICENSE_CANCELATION>0</LICENSE_CANCELATION><LICENSE_SUSPENSION>0</LICENSE_SUSPENSION><CUMULATIVE_DURATION>0</CUMULATIVE_DURATION></MAIN_DRIVER><INCIDENT value=\\\"1\\\"/><INCIDENT value=\\\"2\\\"/></CAR></ASSUR_REQUEST>\\n\"},\"response\":\"<ASSUR_RESPONSE status=\\\"10\\\" type=\\\"COTA\\\" version=\\\"0.1b.8\\\">\\n <CONTACT_NAME>Josef Jirkovsky</CONTACT_NAME>\\n <CONTACT_EMAIL>jj@tactic.fr</CONTACT_EMAIL>\\n <CONTACT_PHONE>+33141033110</CONTACT_PHONE>\\n <ERROR_MESSAGE>Rejet - Ce PROFIL est rejete par toutes les compagnies ()</ERROR_MESSAGE>\\n</ASSUR_RESPONSE>\\n\",\"errors\":[],\"timestamp\":{\"date\":\"2014-02-14 10:51:58\",\"timezone_type\":3,\"timezone\":\"Europe/Paris\"},\"name\":\"log-AssurPeople-request\",\"ReceiptHandle\":\"gH2qdC6bjNvMqvZuoPEWJVUasVxMXg3Rch6gyVhzecTuVRdX4erVKkxA5y0fqc8T/+S3hj6WEy9O/pkoMZKeQATNbPERP8tQjirvya0426I3Bwum3DlIhha8dPV5zl1YcXKdlie4Czdtb4AUNPWnVkQafZsTEiSfA1XmK1o+IY8leLpF+FO4cGhIennyJXpx3ZFYSq6Io7Wg3xsFvPJaCFTtiZDkAoPVxop97hNLP02J+Vx/tnp/0itfKYxl93djAIZSrURVjbHtp1yj2nWQZ12UqQt45cPA6qEyLrwKui4=\"}", "extra": [ ] }'; print_r(json_decode("{\"request\":{\"url\":{},\"data\":\"<?xml version=\\\"1.0\\\"?>\\n<ASSUR_REQUEST type=\\\"COTA\\\"><REQUEST_ORIGIN>CA</REQUEST_ORIGIN><QUOTATION_DATE><DAY/><MONTH/><YEAR/></QUOTATION_DATE><CAR><VEHICLE><GTA_CODE>RE07001</GTA_CODE><DATE_OF_FIRST_USAGE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2003</YEAR></DATE_OF_FIRST_USAGE><DATE_OF_PURCHASE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2014</YEAR></DATE_OF_PURCHASE><OWNERSHIP/><NIGHT_PARKING_TYPE/><GARAGE_POST_CODE>37000</GARAGE_POST_CODE><WORK_POST_CODE>37000</WORK_POST_CODE><USAGE>1</USAGE><ANNUAL_MILEAGE/><COVERAGE>E</COVERAGE></VEHICLE><CAR_OWNING_STATUS/><MAIN_DRIVER><GENDER/><BIRTH_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>1993</YEAR></BIRTH_DATE><MARITAL_STATUS/><OCCUPATION/><CURRENTLY_INSURED/><HAS_BEEN_INSURED>O</HAS_BEEN_INSURED><CONTINUOUS_COVERAGE>3</CONTINUOUS_COVERAGE><LAPSE>3</LAPSE><BONUS>175</BONUS><YEARS_OF_BONUS_50/><DRIVING_LICENSE_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>2011</YEAR></DRIVING_LICENSE_DATE><LICENSE_OBTAINMENT_MODE/><DUI_CONVICTION/><LICENSE_REVOKED>N</LICENSE_REVOKED><INSURANCE_CANCELED>N</INSURANCE_CANCELED><NON_INSURANCE_CONVICTION/><LICENSE_CANCELATION>0</LICENSE_CANCELATION><LICENSE_SUSPENSION>0</LICENSE_SUSPENSION><CUMULATIVE_DURATION>0</CUMULATIVE_DURATION></MAIN_DRIVER><INCIDENT value=\\\"1\\\"/><INCIDENT value=\\\"2\\\"/></CAR></ASSUR_REQUEST>\\n\"},\"response\":\"<ASSUR_RESPONSE status=\\\"10\\\" type=\\\"COTA\\\" version=\\\"0.1b.8\\\">\\n <CONTACT_NAME>Josef Jirkovsky</CONTACT_NAME>\\n <CONTACT_EMAIL>jj@tactic.fr</CONTACT_EMAIL>\\n <CONTACT_PHONE>+33141033110</CONTACT_PHONE>\\n <ERROR_MESSAGE>Rejet - Ce PROFIL est rejete par toutes les compagnies ()</ERROR_MESSAGE>\\n</ASSUR_RESPONSE>\\n\",\"errors\":[],\"timestamp\":{\"date\":\"2014-02-14 10:51:58\",\"timezone_type\":3,\"timezone\":\"Europe/Paris\"},\"name\":\"log-AssurPeople-request\",\"ReceiptHandle\":\"gH2qdC6bjNvMqvZuoPEWJVUasVxMXg3Rch6gyVhzecTuVRdX4erVKkxA5y0fqc8T/+S3hj6WEy9O/pkoMZKeQATNbPERP8tQjirvya0426I3Bwum3DlIhha8dPV5zl1YcXKdlie4Czdtb4AUNPWnVkQafZsTEiSfA1XmK1o+IY8leLpF+FO4cGhIennyJXpx3ZFYSq6Io7Wg3xsFvPJaCFTtiZDkAoPVxop97hNLP02J+Vx/tnp/0itfKYxl93djAIZSrURVjbHtp1yj2nWQZ12UqQt45cPA6qEyLrwKui4=\"}"));
Output for 5.2.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
stdClass Object ( [request] => stdClass Object ( [url] => stdClass Object ( ) [data] => <?xml version="1.0"?> <ASSUR_REQUEST type="COTA"><REQUEST_ORIGIN>CA</REQUEST_ORIGIN><QUOTATION_DATE><DAY/><MONTH/><YEAR/></QUOTATION_DATE><CAR><VEHICLE><GTA_CODE>RE07001</GTA_CODE><DATE_OF_FIRST_USAGE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2003</YEAR></DATE_OF_FIRST_USAGE><DATE_OF_PURCHASE><DAY>14</DAY><MONTH>02</MONTH><YEAR>2014</YEAR></DATE_OF_PURCHASE><OWNERSHIP/><NIGHT_PARKING_TYPE/><GARAGE_POST_CODE>37000</GARAGE_POST_CODE><WORK_POST_CODE>37000</WORK_POST_CODE><USAGE>1</USAGE><ANNUAL_MILEAGE/><COVERAGE>E</COVERAGE></VEHICLE><CAR_OWNING_STATUS/><MAIN_DRIVER><GENDER/><BIRTH_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>1993</YEAR></BIRTH_DATE><MARITAL_STATUS/><OCCUPATION/><CURRENTLY_INSURED/><HAS_BEEN_INSURED>O</HAS_BEEN_INSURED><CONTINUOUS_COVERAGE>3</CONTINUOUS_COVERAGE><LAPSE>3</LAPSE><BONUS>175</BONUS><YEARS_OF_BONUS_50/><DRIVING_LICENSE_DATE><DAY>01</DAY><MONTH>01</MONTH><YEAR>2011</YEAR></DRIVING_LICENSE_DATE><LICENSE_OBTAINMENT_MODE/><DUI_CONVICTION/><LICENSE_REVOKED>N</LICENSE_REVOKED><INSURANCE_CANCELED>N</INSURANCE_CANCELED><NON_INSURANCE_CONVICTION/><LICENSE_CANCELATION>0</LICENSE_CANCELATION><LICENSE_SUSPENSION>0</LICENSE_SUSPENSION><CUMULATIVE_DURATION>0</CUMULATIVE_DURATION></MAIN_DRIVER><INCIDENT value="1"/><INCIDENT value="2"/></CAR></ASSUR_REQUEST> ) [response] => <ASSUR_RESPONSE status="10" type="COTA" version="0.1b.8"> <CONTACT_NAME>Josef Jirkovsky</CONTACT_NAME> <CONTACT_EMAIL>jj@tactic.fr</CONTACT_EMAIL> <CONTACT_PHONE>+33141033110</CONTACT_PHONE> <ERROR_MESSAGE>Rejet - Ce PROFIL est rejete par toutes les compagnies ()</ERROR_MESSAGE> </ASSUR_RESPONSE> [errors] => Array ( ) [timestamp] => stdClass Object ( [date] => 2014-02-14 10:51:58 [timezone_type] => 3 [timezone] => Europe/Paris ) [name] => log-AssurPeople-request [ReceiptHandle] => gH2qdC6bjNvMqvZuoPEWJVUasVxMXg3Rch6gyVhzecTuVRdX4erVKkxA5y0fqc8T/+S3hj6WEy9O/pkoMZKeQATNbPERP8tQjirvya0426I3Bwum3DlIhha8dPV5zl1YcXKdlie4Czdtb4AUNPWnVkQafZsTEiSfA1XmK1o+IY8leLpF+FO4cGhIennyJXpx3ZFYSq6Io7Wg3xsFvPJaCFTtiZDkAoPVxop97hNLP02J+Vx/tnp/0itfKYxl93djAIZSrURVjbHtp1yj2nWQZ12UqQt45cPA6qEyLrwKui4= )
Output for 5.0.0 - 5.1.6
<br /> <b>Fatal error</b>: Call to undefined function json_decode() in <b>/in/Lvqmh</b> on line <b>15</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/Lvqmh</b> on line <b>15</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/Lvqmh</b> on line <b>15</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: json_decode() in <b>/in/Lvqmh</b> on line <b>15</b><br />