3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"checks":{"customer_credentials":{"passed":true,"performedAt":"2022-05-14T10:53:25+00:00","payload":{"createdAt":"2022-05-13T21:33:44+00:00"}},"customer_address":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"createdAt":"2022-05-13T21:33:44+00:00"}},"client_application":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"applicationId":"cccccccc-0003-cccc-cccc-cccccccccccc","createdAt":"2022-05-13T21:33:45+00:00"}},"application_notification":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"createdAt":"2022-05-13T21:33:54+00:00"}},"test_notification":{"passed":false,"performedAt":"2022-05-14T10:53:26+00:00"},"payment_countries":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"countries":["GB","DE","IT","NO","LT","FI","SE","BR"]}},"payment_providers":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"providers":["Volt","Yapily","Neonomics","Token"]}},"bank_account":{"passed":true,"performedAt":"2022-05-14T10:53:26+00:00","payload":{"createdAt":"2022-05-13T21:33:54+00:00"}},"first_successful_payment":{"passed":false,"performedAt":"2022-05-14T10:53:26+00:00"},"delivered_notification":{"passed":false,"performedAt":"2022-05-14T10:53:26+00:00"}}}'; $data = \json_decode($json, true, 512, JSON_THROW_ON_ERROR); print_r($data);
Output for 7.4.0 - 7.4.29, 8.0.1 - 8.0.19, 8.1.0 - 8.1.6
Array ( [checks] => Array ( [customer_credentials] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:25+00:00 [payload] => Array ( [createdAt] => 2022-05-13T21:33:44+00:00 ) ) [customer_address] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [createdAt] => 2022-05-13T21:33:44+00:00 ) ) [client_application] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [applicationId] => cccccccc-0003-cccc-cccc-cccccccccccc [createdAt] => 2022-05-13T21:33:45+00:00 ) ) [application_notification] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [createdAt] => 2022-05-13T21:33:54+00:00 ) ) [test_notification] => Array ( [passed] => [performedAt] => 2022-05-14T10:53:26+00:00 ) [payment_countries] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [countries] => Array ( [0] => GB [1] => DE [2] => IT [3] => NO [4] => LT [5] => FI [6] => SE [7] => BR ) ) ) [payment_providers] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [providers] => Array ( [0] => Volt [1] => Yapily [2] => Neonomics [3] => Token ) ) ) [bank_account] => Array ( [passed] => 1 [performedAt] => 2022-05-14T10:53:26+00:00 [payload] => Array ( [createdAt] => 2022-05-13T21:33:54+00:00 ) ) [first_successful_payment] => Array ( [passed] => [performedAt] => 2022-05-14T10:53:26+00:00 ) [delivered_notification] => Array ( [passed] => [performedAt] => 2022-05-14T10:53:26+00:00 ) ) )

preferences:
22.21 ms | 420 KiB | 5 Q