3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $resp = 'a:68:{s:13:"Response Code";s:1:"1";s:16:"Response Subcode";s:1:"1";s:20:"Response Reason Code";s:1:"1";s:20:"Response Reason Text";s:46:"(TESTMODE) This transaction has been approved.";s:13:"Approval Code";s:6:"000000";s:15:"AVS Result Code";s:1:"P";s:14:"Transaction ID";s:1:"0";s:14:"Invoice Number";s:0:"";s:11:"Description";s:0:"";s:6:"Amount";s:5:"50.00";s:6:"Method";s:2:"CC";s:16:"Transaction Type";s:9:"auth_only";s:11:"Customer ID";s:0:"";s:21:"Cardholder First Name";s:4:"test";s:20:"Cardholder Last Name";s:0:"";s:7:"Company";s:0:"";s:15:"Billing Address";s:13:"Iskcon temple";s:4:"City";s:9:"Ahmedabad";s:5:"State";s:8:"Gujarath";s:3:"Zip";s:6:"380015";s:7:"Country";s:5:"India";s:5:"Phone";s:0:"";s:3:"Fax";s:0:"";s:5:"Email";s:0:"";s:18:"Ship to First Name";s:0:"";s:17:"Ship to Last Name";s:0:"";s:15:"Ship to Company";s:0:"";s:15:"Ship to Address";s:0:"";s:12:"Ship to City";s:0:"";s:13:"Ship to State";s:0:"";s:11:"Ship to Zip";s:0:"";s:15:"Ship to Country";s:0:"";s:10:"Tax Amount";s:0:"";s:11:"Duty Amount";s:0:"";s:14:"Freight Amount";s:0:"";s:15:"Tax Exempt Flag";s:0:"";s:9:"PO Number";s:0:"";s:8:"MD5 Hash";s:32:"6E9C45B3104803DA87C696834D90FB2B";s:39:"Card Code (CVV2/CVC2/CID) Response Code";s:0:"";s:65:"Cardholder Authentication Verification Value (CAVV) Response Code";s:0:"";s:16:"Reserved Field 0";s:0:"";s:16:"Reserved Field 1";s:0:"";s:16:"Reserved Field 2";s:0:"";s:16:"Reserved Field 3";s:0:"";s:16:"Reserved Field 4";s:0:"";s:16:"Reserved Field 5";s:0:"";s:16:"Reserved Field 6";s:0:"";s:16:"Reserved Field 7";s:0:"";s:16:"Reserved Field 8";s:0:"";s:16:"Reserved Field 9";s:0:"";s:17:"Reserved Field 10";s:8:"XXXX6891";s:17:"Reserved Field 11";s:4:"Visa";s:17:"Reserved Field 12";s:0:"";s:17:"Reserved Field 13";s:0:"";s:17:"Reserved Field 14";s:0:"";s:17:"Reserved Field 15";s:0:"";s:17:"Reserved Field 16";s:0:"";s:17:"Reserved Field 17";s:0:"";s:17:"Reserved Field 18";s:0:"";s:17:"Reserved Field 19";s:0:"";s:17:"Reserved Field 20";s:0:"";s:17:"Reserved Field 21";s:0:"";s:17:"Reserved Field 22";s:0:"";s:17:"Reserved Field 23";s:0:"";s:17:"Reserved Field 24";s:0:"";s:17:"Reserved Field 25";s:0:"";s:17:"Reserved Field 26";s:0:"";s:17:"Reserved Field 27";s:0:"";}'; echo json_decode($resp);
Output for 5.2.0, 5.2.9 - 7.2.0
Output for 5.2.1 - 5.2.8
a:68:{s:13:"Response Code";s:1:"1";s:16:"Response Subcode";s:1:"1";s:20:"Response Reason Code";s:1:"1";s:20:"Response Reason Text";s:46:"(TESTMODE) This transaction has been approved.";s:13:"Approval Code";s:6:"000000";s:15:"AVS Result Code";s:1:"P";s:14:"Transaction ID";s:1:"0";s:14:"Invoice Number";s:0:"";s:11:"Description";s:0:"";s:6:"Amount";s:5:"50.00";s:6:"Method";s:2:"CC";s:16:"Transaction Type";s:9:"auth_only";s:11:"Customer ID";s:0:"";s:21:"Cardholder First Name";s:4:"test";s:20:"Cardholder Last Name";s:0:"";s:7:"Company";s:0:"";s:15:"Billing Address";s:13:"Iskcon temple";s:4:"City";s:9:"Ahmedabad";s:5:"State";s:8:"Gujarath";s:3:"Zip";s:6:"380015";s:7:"Country";s:5:"India";s:5:"Phone";s:0:"";s:3:"Fax";s:0:"";s:5:"Email";s:0:"";s:18:"Ship to First Name";s:0:"";s:17:"Ship to Last Name";s:0:"";s:15:"Ship to Company";s:0:"";s:15:"Ship to Address";s:0:"";s:12:"Ship to City";s:0:"";s:13:"Ship to State";s:0:"";s:11:"Ship to Zip";s:0:"";s:15:"Ship to Country";s:0:"";s:10:"Tax Amount";s:0:"";s:11:"Duty Amount";s:0:"";s:14:"Freight Amount";s:0:"";s:15:"Tax Exempt Flag";s:0:"";s:9:"PO Number";s:0:"";s:8:"MD5 Hash";s:32:"6E9C45B3104803DA87C696834D90FB2B";s:39:"Card Code (CVV2/CVC2/CID) Response Code";s:0:"";s:65:"Cardholder Authentication Verification Value (CAVV) Response Code";s:0:"";s:16:"Reserved Field 0";s:0:"";s:16:"Reserved Field 1";s:0:"";s:16:"Reserved Field 2";s:0:"";s:16:"Reserved Field 3";s:0:"";s:16:"Reserved Field 4";s:0:"";s:16:"Reserved Field 5";s:0:"";s:16:"Reserved Field 6";s:0:"";s:16:"Reserved Field 7";s:0:"";s:16:"Reserved Field 8";s:0:"";s:16:"Reserved Field 9";s:0:"";s:17:"Reserved Field 10";s:8:"XXXX6891";s:17:"Reserved Field 11";s:4:"Visa";s:17:"Reserved Field 12";s:0:"";s:17:"Reserved Field 13";s:0:"";s:17:"Reserved Field 14";s:0:"";s:17:"Reserved Field 15";s:0:"";s:17:"Reserved Field 16";s:0:"";s:17:"Reserved Field 17";s:0:"";s:17:"Reserved Field 18";s:0:"";s:17:"Reserved Field 19";s:0:"";s:17:"Reserved Field 20";s:0:"";s:17:"Reserved Field 21";s:0:"";s:17:"Reserved Field 22";s:0:"";s:17:"Reserved Field 23";s:0:"";s:17:"Reserved Field 24";s:0:"";s:17:"Reserved Field 25";s:0:"";s:17:"Reserved Field 26";s:0:"";s:17:"Reserved Field 27";s:0:"";}
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/7qtSb on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/7qtSb on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/7qtSb on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/7qtSb on line 3