3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"transaction_error":0,"transaction_approved":0,"exact_resp_code":"00","exact_message":"Transaction Normal","bank_resp_code":"530","bank_message":"Do Not Honor","sequence_no":"0983397","avs":"Q","retrieval_ref_no":"141004","merchant_name":"EAST END BARTER LLC","merchant_address":"209 W MAIN ST STE4","merchant_city":"RIVERHEAD","merchant_province":"New York","merchant_country":"United States","merchant_postal":"11901","merchant_url":"WWW.EASTENDBARTER.COM","ctr":"=========== TRANSACTION RECORD ==========\nEAST END BARTER LLC\n209 W MAIN ST STE4\nRIVERHEAD, NY 11901\nUnited States\nWWW.EASTENDBARTER.COM\n\nTYPE: Purchase\n\nACCT: Visa $ 1.00 USD\n\nCARDHOLDER NAME : Lauren Campbell\nCARD NUMBER : ############4414\nDATE/TIME : 04 Oct 14 11:31:11\nREFERENCE # : 001 0983397 M\nAUTHOR. # : \nTRANS. REF. : \n\n Transaction not approved 530\n\n\nPlease retain this copy for your records.\n\n=========================================","gateway_id":"C55572-01","transaction_type":"00","amount":1.0,"cc_number":"############4414","transaction_tag":510905435,"cc_expiry":"0615","cardholder_name":"Lauren Campbell","cvd_presence_ind":0,"client_ip":"199.204.23.90","currency_code":"USD","partial_redemption":0,"credit_card_type":"Visa"}'));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
object(stdClass)#1 (29) { ["transaction_error"]=> int(0) ["transaction_approved"]=> int(0) ["exact_resp_code"]=> string(2) "00" ["exact_message"]=> string(18) "Transaction Normal" ["bank_resp_code"]=> string(3) "530" ["bank_message"]=> string(12) "Do Not Honor" ["sequence_no"]=> string(7) "0983397" ["avs"]=> string(1) "Q" ["retrieval_ref_no"]=> string(6) "141004" ["merchant_name"]=> string(19) "EAST END BARTER LLC" ["merchant_address"]=> string(18) "209 W MAIN ST STE4" ["merchant_city"]=> string(9) "RIVERHEAD" ["merchant_province"]=> string(8) "New York" ["merchant_country"]=> string(13) "United States" ["merchant_postal"]=> string(5) "11901" ["merchant_url"]=> string(21) "WWW.EASTENDBARTER.COM" ["ctr"]=> string(446) "=========== TRANSACTION RECORD ========== EAST END BARTER LLC 209 W MAIN ST STE4 RIVERHEAD, NY 11901 United States WWW.EASTENDBARTER.COM TYPE: Purchase ACCT: Visa $ 1.00 USD CARDHOLDER NAME : Lauren Campbell CARD NUMBER : ############4414 DATE/TIME : 04 Oct 14 11:31:11 REFERENCE # : 001 0983397 M AUTHOR. # : TRANS. REF. : Transaction not approved 530 Please retain this copy for your records. =========================================" ["gateway_id"]=> string(9) "C55572-01" ["transaction_type"]=> string(2) "00" ["amount"]=> float(1) ["cc_number"]=> string(16) "############4414" ["transaction_tag"]=> int(510905435) ["cc_expiry"]=> string(4) "0615" ["cardholder_name"]=> string(15) "Lauren Campbell" ["cvd_presence_ind"]=> int(0) ["client_ip"]=> string(13) "199.204.23.90" ["currency_code"]=> string(3) "USD" ["partial_redemption"]=> int(0) ["credit_card_type"]=> string(4) "Visa" }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/ahi7O 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/ahi7O on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/ahi7O 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/ahi7O on line 3

preferences:
245.35 ms | 401 KiB | 356 Q