3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Title": "JSON GM Broker Transaction (REST Service)", "Description": "JSON GM Broker Transaction (REST Service)", "TransactionType": "1", "Partner": { "PartnerId": "6729" }, "Buyer": { "Email": "escrow.buyer@hotmail.com", "Initiator": "false", "CompanyChk": "false", "AutoAgree": "false", "AgreementChecked": "false" }, "Seller": { "Email": "escrow.seller@hotmail.com", "Initiator": "false", "CompanyChk": "false", "AutoAgree": "false", "AgreementChecked": "false" }, "Broker": { "Email": "escrow.broker@hotmail.com", "Initiator": "true", "CompanyChk": "true", "AutoAgree": "true", "AgreementChecked": "true" }, "LineItems": [ { "ItemName": "Line item 1", "Description": "REST Service test line item", "Quantity": "1", "Price": "2500", "Accept": "true", "SellComm": "100", "BuyComm": "50" } ], "EscrowPayment": "0", "ShipmentFee": "25", "ShipmentPayment": "0", "InspectionLength": "6", "Currency": "USD", "Fulfillment": "1", "Disclosure": "1", "BrokerCommissionPayee": "Buyer", "BrkCommissionBuyerPortion": "18.1", "BrkCommissionSellerPortion": "19.1", "CommissionType": "1", "InitiationDate": "2014-04-15", "TransactionLocked": "true", "PartnerTransID": "12345", "TermsLocked": "true", "AllowReject": "true" }'; $decoded = json_decode($json); var_export($decoded);
Output for 7.3.0 - 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) array( 'Title' => 'JSON GM Broker Transaction (REST Service)', 'Description' => 'JSON GM Broker Transaction (REST Service)', 'TransactionType' => '1', 'Partner' => (object) array( 'PartnerId' => '6729', ), 'Buyer' => (object) array( 'Email' => 'escrow.buyer@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', ), 'Seller' => (object) array( 'Email' => 'escrow.seller@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', ), 'Broker' => (object) array( 'Email' => 'escrow.broker@hotmail.com', 'Initiator' => 'true', 'CompanyChk' => 'true', 'AutoAgree' => 'true', 'AgreementChecked' => 'true', ), 'LineItems' => array ( 0 => (object) array( 'ItemName' => 'Line item 1', 'Description' => 'REST Service test line item', 'Quantity' => '1', 'Price' => '2500', 'Accept' => 'true', 'SellComm' => '100', 'BuyComm' => '50', ), ), 'EscrowPayment' => '0', 'ShipmentFee' => '25', 'ShipmentPayment' => '0', 'InspectionLength' => '6', 'Currency' => 'USD', 'Fulfillment' => '1', 'Disclosure' => '1', 'BrokerCommissionPayee' => 'Buyer', 'BrkCommissionBuyerPortion' => '18.1', 'BrkCommissionSellerPortion' => '19.1', 'CommissionType' => '1', 'InitiationDate' => '2014-04-15', 'TransactionLocked' => 'true', 'PartnerTransID' => '12345', 'TermsLocked' => 'true', 'AllowReject' => 'true', )
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.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
stdClass::__set_state(array( 'Title' => 'JSON GM Broker Transaction (REST Service)', 'Description' => 'JSON GM Broker Transaction (REST Service)', 'TransactionType' => '1', 'Partner' => stdClass::__set_state(array( 'PartnerId' => '6729', )), 'Buyer' => stdClass::__set_state(array( 'Email' => 'escrow.buyer@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', )), 'Seller' => stdClass::__set_state(array( 'Email' => 'escrow.seller@hotmail.com', 'Initiator' => 'false', 'CompanyChk' => 'false', 'AutoAgree' => 'false', 'AgreementChecked' => 'false', )), 'Broker' => stdClass::__set_state(array( 'Email' => 'escrow.broker@hotmail.com', 'Initiator' => 'true', 'CompanyChk' => 'true', 'AutoAgree' => 'true', 'AgreementChecked' => 'true', )), 'LineItems' => array ( 0 => stdClass::__set_state(array( 'ItemName' => 'Line item 1', 'Description' => 'REST Service test line item', 'Quantity' => '1', 'Price' => '2500', 'Accept' => 'true', 'SellComm' => '100', 'BuyComm' => '50', )), ), 'EscrowPayment' => '0', 'ShipmentFee' => '25', 'ShipmentPayment' => '0', 'InspectionLength' => '6', 'Currency' => 'USD', 'Fulfillment' => '1', 'Disclosure' => '1', 'BrokerCommissionPayee' => 'Buyer', 'BrkCommissionBuyerPortion' => '18.1', 'BrkCommissionSellerPortion' => '19.1', 'CommissionType' => '1', 'InitiationDate' => '2014-04-15', 'TransactionLocked' => 'true', 'PartnerTransID' => '12345', 'TermsLocked' => 'true', 'AllowReject' => 'true', ))
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/NOnl5 on line 60
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/NOnl5 on line 60
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/NOnl5 on line 60
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/NOnl5 on line 60

preferences:
316.52 ms | 401 KiB | 459 Q