3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode("{\"paymentMethodsResponse\":{\"paymentMethods\":[{\"name\":\"Sofort.\",\"type\":\"directEbanking\"},{\"brands\":[\"mc\",\"visa\"],\"details\":[{\"key\":\"encryptedCardNumber\",\"type\":\"cardToken\"},{\"key\":\"encryptedSecurityCode\",\"type\":\"cardToken\"},{\"key\":\"encryptedExpiryMonth\",\"type\":\"cardToken\"},{\"key\":\"encryptedExpiryYear\",\"type\":\"cardToken\"},{\"key\":\"holderName\",\"optional\":true,\"type\":\"text\"}],\"name\":\"Kreditkarte\",\"type\":\"scheme\"},{\"configuration\":{\"merchantId\":\"UYBU7MX2LQZSU\",\"intent\":\"capture\"},\"name\":\"PayPal\",\"type\":\"paypal\"},{\"configuration\":{\"merchantId\":\"293099710\",\"gatewayMerchantId\":\"4KraftECOM\"},\"details\":[{\"key\":\"paywithgoogle.token\",\"type\":\"payWithGoogleToken\"}],\"name\":\"Google Pay\",\"type\":\"paywithgoogle\"}]},\"paymentMethodsExtraDetails\":{\"directEbanking\":{\"icon\":{\"url\":\"https:\\\/\\\/kinderkraft.com.de\\\/static\\\/version1631682286\\\/frontend\\\/Kinderkraft\\\/default\\\/de_DE\\\/Adyen_Payment\\\/images\\\/logos\\\/directEbanking.png\",\"width\":65,\"height\":41},\"isOpenInvoice\":false,\"configuration\":{\"amount\":{\"value\":29900,\"currency\":\"EUR\"},\"currency\":\"EUR\"}},\"scheme\":{\"icon\":{\"url\":\"https:\\\/\\\/checkoutshopper-live.adyen.com\\\/checkoutshopper\\\/images\\\/logos\\\/medium\\\/scheme.png\",\"width\":77,\"height\":50},\"isOpenInvoice\":false,\"configuration\":{\"amount\":{\"value\":29900,\"currency\":\"EUR\"},\"currency\":\"EUR\"}},\"paypal\":{\"icon\":{\"url\":\"https:\\\/\\\/kinderkraft.com.de\\\/static\\\/version1631682286\\\/frontend\\\/Kinderkraft\\\/default\\\/de_DE\\\/Adyen_Payment\\\/images\\\/logos\\\/paypal.png\",\"width\":65,\"height\":41},\"isOpenInvoice\":false,\"configuration\":{\"amount\":{\"value\":29900,\"currency\":\"EUR\"},\"currency\":\"EUR\"}},\"paywithgoogle\":{\"icon\":{\"url\":\"https:\\\/\\\/checkoutshopper-live.adyen.com\\\/checkoutshopper\\\/images\\\/logos\\\/medium\\\/paywithgoogle.png\",\"width\":77,\"height\":50},\"isOpenInvoice\":false,\"configuration\":{\"amount\":{\"value\":29900,\"currency\":\"EUR\"},\"currency\":\"EUR\"}}}}", true));
Output for 7.3.0 - 7.3.30, 7.4.0 - 7.4.23, 8.0.0 - 8.0.11, 8.1rc1 - rc2
array(2) { ["paymentMethodsResponse"]=> array(1) { ["paymentMethods"]=> array(4) { [0]=> array(2) { ["name"]=> string(7) "Sofort." ["type"]=> string(14) "directEbanking" } [1]=> array(4) { ["brands"]=> array(2) { [0]=> string(2) "mc" [1]=> string(4) "visa" } ["details"]=> array(5) { [0]=> array(2) { ["key"]=> string(19) "encryptedCardNumber" ["type"]=> string(9) "cardToken" } [1]=> array(2) { ["key"]=> string(21) "encryptedSecurityCode" ["type"]=> string(9) "cardToken" } [2]=> array(2) { ["key"]=> string(20) "encryptedExpiryMonth" ["type"]=> string(9) "cardToken" } [3]=> array(2) { ["key"]=> string(19) "encryptedExpiryYear" ["type"]=> string(9) "cardToken" } [4]=> array(3) { ["key"]=> string(10) "holderName" ["optional"]=> bool(true) ["type"]=> string(4) "text" } } ["name"]=> string(11) "Kreditkarte" ["type"]=> string(6) "scheme" } [2]=> array(3) { ["configuration"]=> array(2) { ["merchantId"]=> string(13) "UYBU7MX2LQZSU" ["intent"]=> string(7) "capture" } ["name"]=> string(6) "PayPal" ["type"]=> string(6) "paypal" } [3]=> array(4) { ["configuration"]=> array(2) { ["merchantId"]=> string(9) "293099710" ["gatewayMerchantId"]=> string(10) "4KraftECOM" } ["details"]=> array(1) { [0]=> array(2) { ["key"]=> string(19) "paywithgoogle.token" ["type"]=> string(18) "payWithGoogleToken" } } ["name"]=> string(10) "Google Pay" ["type"]=> string(13) "paywithgoogle" } } } ["paymentMethodsExtraDetails"]=> array(4) { ["directEbanking"]=> array(3) { ["icon"]=> array(3) { ["url"]=> string(144) "https:\/\/kinderkraft.com.de\/static\/version1631682286\/frontend\/Kinderkraft\/default\/de_DE\/Adyen_Payment\/images\/logos\/directEbanking.png" ["width"]=> int(65) ["height"]=> int(41) } ["isOpenInvoice"]=> bool(false) ["configuration"]=> array(2) { ["amount"]=> array(2) { ["value"]=> int(29900) ["currency"]=> string(3) "EUR" } ["currency"]=> string(3) "EUR" } } ["scheme"]=> array(3) { ["icon"]=> array(3) { ["url"]=> string(92) "https:\/\/checkoutshopper-live.adyen.com\/checkoutshopper\/images\/logos\/medium\/scheme.png" ["width"]=> int(77) ["height"]=> int(50) } ["isOpenInvoice"]=> bool(false) ["configuration"]=> array(2) { ["amount"]=> array(2) { ["value"]=> int(29900) ["currency"]=> string(3) "EUR" } ["currency"]=> string(3) "EUR" } } ["paypal"]=> array(3) { ["icon"]=> array(3) { ["url"]=> string(136) "https:\/\/kinderkraft.com.de\/static\/version1631682286\/frontend\/Kinderkraft\/default\/de_DE\/Adyen_Payment\/images\/logos\/paypal.png" ["width"]=> int(65) ["height"]=> int(41) } ["isOpenInvoice"]=> bool(false) ["configuration"]=> array(2) { ["amount"]=> array(2) { ["value"]=> int(29900) ["currency"]=> string(3) "EUR" } ["currency"]=> string(3) "EUR" } } ["paywithgoogle"]=> array(3) { ["icon"]=> array(3) { ["url"]=> string(99) "https:\/\/checkoutshopper-live.adyen.com\/checkoutshopper\/images\/logos\/medium\/paywithgoogle.png" ["width"]=> int(77) ["height"]=> int(50) } ["isOpenInvoice"]=> bool(false) ["configuration"]=> array(2) { ["amount"]=> array(2) { ["value"]=> int(29900) ["currency"]=> string(3) "EUR" } ["currency"]=> string(3) "EUR" } } } }

preferences:
22.24 ms | 479 KiB | 5 Q