3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "{\"entity_id\":\"129189\",\"state\":\"new\",\"status\":\"payfort_payment_stock_issued\",\"coupon_code\":null,\"protect_code\":\"97dcd0a2ff899aba8b7effef239b9c33\",\"shipping_description\":\"Store Pickup - Store Pickup\",\"is_virtual\":\"0\",\"store_id\":\"4\",\"customer_id\":\"133103\",\"base_discount_amount\":\"0.0000\",\"base_discount_canceled\":null,\"base_discount_invoiced\":null,\"base_discount_refunded\":null,\"base_grand_total\":\"149.0000\",\"base_shipping_amount\":\"0.0000\",\"base_shipping_canceled\":null,\"base_shipping_invoiced\":null,\"base_shipping_refunded\":null,\"base_shipping_tax_amount\":\"0.0000\",\"base_shipping_tax_refunded\":null,\"base_subtotal\":\"149.0000\",\"base_subtotal_canceled\":null,\"base_subtotal_invoiced\":null,\"base_subtotal_refunded\":null,\"base_tax_amount\":\"0.0000\",\"base_tax_canceled\":null,\"base_tax_invoiced\":null,\"base_tax_refunded\":null,\"base_to_global_rate\":\"1.0000\",\"base_to_order_rate\":\"1.0000\",\"base_total_canceled\":null,\"base_total_invoiced\":null,\"base_total_invoiced_cost\":null,\"base_total_offline_refunded\":null,\"base_total_online_refunded\":null,\"base_total_paid\":null,\"base_total_qty_ordered\":null,\"base_total_refunded\":null,\"discount_amount\":\"0.0000\",\"discount_canceled\":null,\"discount_invoiced\":null,\"discount_refunded\":null,\"grand_total\":\"149.0000\",\"shipping_amount\":\"0.0000\",\"shipping_canceled\":null,\"shipping_invoiced\":null,\"shipping_refunded\":null,\"shipping_tax_amount\":\"0.0000\",\"shipping_tax_refunded\":null,\"store_to_base_rate\":\"0.0000\",\"store_to_order_rate\":\"0.0000\",\"subtotal\":\"149.0000\",\"subtotal_canceled\":null,\"subtotal_invoiced\":null,\"subtotal_refunded\":null,\"tax_amount\":\"0.0000\",\"tax_canceled\":null,\"tax_invoiced\":null,\"tax_refunded\":null,\"total_canceled\":null,\"total_invoiced\":null,\"total_offline_refunded\":null,\"total_online_refunded\":null,\"total_paid\":null,\"total_qty_ordered\":\"1.0000\",\"total_refunded\":null,\"can_ship_partially\":null,\"can_ship_partially_item\":null,\"customer_is_guest\":\"0\",\"customer_note_notify\":\"1\",\"billing_address_id\":\"258333\",\"customer_group_id\":\"1\",\"edit_increment\":null,\"email_sent\":\"1\",\"send_email\":\"1\",\"forced_shipment_with_invoice\":null,\"payment_auth_expiration\":null,\"quote_address_id\":null,\"quote_id\":\"211485\",\"shipping_address_id\":\"258330\",\"adjustment_negative\":null,\"adjustment_positive\":null,\"base_adjustment_negative\":null,\"base_adjustment_positive\":null,\"base_shipping_discount_amount\":\"0.0000\",\"base_subtotal_incl_tax\":\"149.0000\",\"base_total_due\":\"149.0000\",\"payment_authorization_amount\":null,\"shipping_discount_amount\":\"0.0000\",\"subtotal_incl_tax\":\"149.0000\",\"total_due\":\"149.0000\",\"weight\":\"0.0000\",\"customer_dob\":null,\"increment_id\":\"4000126873\",\"applied_rule_ids\":null,\"base_currency_code\":\"EGP\",\"customer_email\":\"mostafa.sayed@robustastudio.com\",\"customer_firstname\":\"Mostafa\",\"customer_lastname\":\"Bokshi\",\"customer_middlename\":null,\"customer_prefix\":null,\"customer_suffix\":null,\"customer_taxvat\":null,\"discount_description\":null,\"ext_customer_id\":null,\"ext_order_id\":null,\"global_currency_code\":\"EGP\",\"hold_before_state\":null,\"hold_before_status\":null,\"order_currency_code\":\"EGP\",\"original_increment_id\":null,\"relation_child_id\":null,\"relation_child_real_id\":null,\"relation_parent_id\":null,\"relation_parent_real_id\":null,\"remote_ip\":\"100.25.9.77\",\"shipping_method\":\"storepickup_storepickup\",\"store_currency_code\":\"EGP\",\"store_name\":\"Main Website\\nMain Website Store\\nArabic\",\"x_forwarded_for\":null,\"customer_note\":null,\"created_at\":\"2022-08-14 15:39:05\",\"updated_at\":\"2022-08-14 15:45:05\",\"total_item_count\":\"1\",\"customer_gender\":null,\"discount_tax_compensation_amount\":\"0.0000\",\"base_discount_tax_compensation_amount\":\"0.0000\",\"shipping_discount_tax_compensation_amount\":\"0.0000\",\"base_shipping_discount_tax_compensation_amnt\":\"0.0000\",\"discount_tax_compensation_invoiced\":null,\"base_discount_tax_compensation_invoiced\":null,\"discount_tax_compensation_refunded\":null,\"base_discount_tax_compensation_refunded\":null,\"shipping_incl_tax\":\"0.0000\",\"base_shipping_incl_tax\":\"0.0000\",\"coupon_rule_name\":null,\"base_customer_balance_amount\":null,\"customer_balance_amount\":null,\"base_customer_balance_invoiced\":null,\"customer_balance_invoiced\":null,\"base_customer_balance_refunded\":null,\"customer_balance_refunded\":null,\"bs_customer_bal_total_refunded\":null,\"customer_bal_total_refunded\":null,\"gift_cards\":\"[]\",\"base_gift_cards_amount\":\"0.0000\",\"gift_cards_amount\":\"0.0000\",\"base_gift_cards_invoiced\":null,\"gift_cards_invoiced\":null,\"base_gift_cards_refunded\":null,\"gift_cards_refunded\":null,\"gift_message_id\":null,\"gw_id\":null,\"gw_allow_gift_receipt\":null,\"gw_add_card\":null,\"gw_base_price\":\"0.0000\",\"gw_price\":\"0.0000\",\"gw_items_base_price\":\"0.0000\",\"gw_items_price\":\"0.0000\",\"gw_card_base_price\":\"0.0000\",\"gw_card_price\":\"0.0000\",\"gw_base_tax_amount\":null,\"gw_tax_amount\":null,\"gw_items_base_tax_amount\":null,\"gw_items_tax_amount\":null,\"gw_card_base_tax_amount\":null,\"gw_card_tax_amount\":null,\"gw_base_price_incl_tax\":null,\"gw_price_incl_tax\":null,\"gw_items_base_price_incl_tax\":null,\"gw_items_price_incl_tax\":null,\"gw_card_base_price_incl_tax\":null,\"gw_card_price_incl_tax\":null,\"gw_base_price_invoiced\":null,\"gw_price_invoiced\":null,\"gw_items_base_price_invoiced\":null,\"gw_items_price_invoiced\":null,\"gw_card_base_price_invoiced\":null,\"gw_card_price_invoiced\":null,\"gw_base_tax_amount_invoiced\":null,\"gw_tax_amount_invoiced\":null,\"gw_items_base_tax_invoiced\":null,\"gw_items_tax_invoiced\":null,\"gw_card_base_tax_invoiced\":null,\"gw_card_tax_invoiced\":null,\"gw_base_price_refunded\":null,\"gw_price_refunded\":null,\"gw_items_base_price_refunded\":null,\"gw_items_price_refunded\":null,\"gw_card_base_price_refunded\":null,\"gw_card_price_refunded\":null,\"gw_base_tax_amount_refunded\":null,\"gw_tax_amount_refunded\":null,\"gw_items_base_tax_refunded\":null,\"gw_items_tax_refunded\":null,\"gw_card_base_tax_refunded\":null,\"gw_card_tax_refunded\":null,\"paypal_ipn_customer_notified\":\"0\",\"reward_points_balance\":null,\"base_reward_currency_amount\":null,\"reward_currency_amount\":null,\"base_rwrd_crrncy_amt_invoiced\":null,\"rwrd_currency_amount_invoiced\":null,\"base_rwrd_crrncy_amnt_refnded\":null,\"rwrd_crrncy_amnt_refunded\":null,\"reward_points_balance_refund\":null,\"mp_smtp_email_marketing_synced\":\"0\",\"seen\":\"1\",\"confirmed_admin_id\":null,\"additional_information\":\"{\\\"order_source\\\":\\\"ca-ios\\\"}\",\"is_rms_synced\":\"0\",\"rms_sync_date\":null,\"is_rms_sync_failed\":\"0\",\"rms_sync_failed_date\":null,\"is_norma_synced\":\"0\",\"norma_trip_start_time\":null,\"norma_customer_eta\":null,\"norma_time_window_from\":null,\"norma_time_window_to\":null,\"norma_cash_due\":null,\"norma_visa_due\":null,\"norma_payment_used\":null,\"norma_payment_status\":null,\"norma_driver_name\":null,\"norma_driver_mobile\":null,\"norma_latitude\":null,\"norma_longitude\":null,\"norma_customer_start_time\":null,\"cancellation_reason\":null,\"pickers_synced\":\"0\",\"pickers_sync_failed_trials\":6,\"is_picked\":\"0\",\"feedback_comments\":null,\"is_rated\":\"0\",\"mp_smtp_email_marketing_order_created\":\"0\",\"pickup_store_code\":null,\"in_pickers_queue\":false,\"norma_status\":null,\"is_rating_dismissed\":\"0\",\"client_source\":\"ca-ios\",\"extension_attributes\":{},\"items\":{\"1693278\":{}},\"payment\":{},\"status_histories\":{\"882210\":{}},\"addresses\":{\"258330\":{},\"258333\":{}}}"; print_r(json_decode($string,true));
Output for 7.4.0 - 7.4.32, 8.0.1 - 8.0.24, 8.1.0 - 8.1.11
Array ( [entity_id] => 129189 [state] => new [status] => payfort_payment_stock_issued [coupon_code] => [protect_code] => 97dcd0a2ff899aba8b7effef239b9c33 [shipping_description] => Store Pickup - Store Pickup [is_virtual] => 0 [store_id] => 4 [customer_id] => 133103 [base_discount_amount] => 0.0000 [base_discount_canceled] => [base_discount_invoiced] => [base_discount_refunded] => [base_grand_total] => 149.0000 [base_shipping_amount] => 0.0000 [base_shipping_canceled] => [base_shipping_invoiced] => [base_shipping_refunded] => [base_shipping_tax_amount] => 0.0000 [base_shipping_tax_refunded] => [base_subtotal] => 149.0000 [base_subtotal_canceled] => [base_subtotal_invoiced] => [base_subtotal_refunded] => [base_tax_amount] => 0.0000 [base_tax_canceled] => [base_tax_invoiced] => [base_tax_refunded] => [base_to_global_rate] => 1.0000 [base_to_order_rate] => 1.0000 [base_total_canceled] => [base_total_invoiced] => [base_total_invoiced_cost] => [base_total_offline_refunded] => [base_total_online_refunded] => [base_total_paid] => [base_total_qty_ordered] => [base_total_refunded] => [discount_amount] => 0.0000 [discount_canceled] => [discount_invoiced] => [discount_refunded] => [grand_total] => 149.0000 [shipping_amount] => 0.0000 [shipping_canceled] => [shipping_invoiced] => [shipping_refunded] => [shipping_tax_amount] => 0.0000 [shipping_tax_refunded] => [store_to_base_rate] => 0.0000 [store_to_order_rate] => 0.0000 [subtotal] => 149.0000 [subtotal_canceled] => [subtotal_invoiced] => [subtotal_refunded] => [tax_amount] => 0.0000 [tax_canceled] => [tax_invoiced] => [tax_refunded] => [total_canceled] => [total_invoiced] => [total_offline_refunded] => [total_online_refunded] => [total_paid] => [total_qty_ordered] => 1.0000 [total_refunded] => [can_ship_partially] => [can_ship_partially_item] => [customer_is_guest] => 0 [customer_note_notify] => 1 [billing_address_id] => 258333 [customer_group_id] => 1 [edit_increment] => [email_sent] => 1 [send_email] => 1 [forced_shipment_with_invoice] => [payment_auth_expiration] => [quote_address_id] => [quote_id] => 211485 [shipping_address_id] => 258330 [adjustment_negative] => [adjustment_positive] => [base_adjustment_negative] => [base_adjustment_positive] => [base_shipping_discount_amount] => 0.0000 [base_subtotal_incl_tax] => 149.0000 [base_total_due] => 149.0000 [payment_authorization_amount] => [shipping_discount_amount] => 0.0000 [subtotal_incl_tax] => 149.0000 [total_due] => 149.0000 [weight] => 0.0000 [customer_dob] => [increment_id] => 4000126873 [applied_rule_ids] => [base_currency_code] => EGP [customer_email] => mostafa.sayed@robustastudio.com [customer_firstname] => Mostafa [customer_lastname] => Bokshi [customer_middlename] => [customer_prefix] => [customer_suffix] => [customer_taxvat] => [discount_description] => [ext_customer_id] => [ext_order_id] => [global_currency_code] => EGP [hold_before_state] => [hold_before_status] => [order_currency_code] => EGP [original_increment_id] => [relation_child_id] => [relation_child_real_id] => [relation_parent_id] => [relation_parent_real_id] => [remote_ip] => 100.25.9.77 [shipping_method] => storepickup_storepickup [store_currency_code] => EGP [store_name] => Main Website Main Website Store Arabic [x_forwarded_for] => [customer_note] => [created_at] => 2022-08-14 15:39:05 [updated_at] => 2022-08-14 15:45:05 [total_item_count] => 1 [customer_gender] => [discount_tax_compensation_amount] => 0.0000 [base_discount_tax_compensation_amount] => 0.0000 [shipping_discount_tax_compensation_amount] => 0.0000 [base_shipping_discount_tax_compensation_amnt] => 0.0000 [discount_tax_compensation_invoiced] => [base_discount_tax_compensation_invoiced] => [discount_tax_compensation_refunded] => [base_discount_tax_compensation_refunded] => [shipping_incl_tax] => 0.0000 [base_shipping_incl_tax] => 0.0000 [coupon_rule_name] => [base_customer_balance_amount] => [customer_balance_amount] => [base_customer_balance_invoiced] => [customer_balance_invoiced] => [base_customer_balance_refunded] => [customer_balance_refunded] => [bs_customer_bal_total_refunded] => [customer_bal_total_refunded] => [gift_cards] => [] [base_gift_cards_amount] => 0.0000 [gift_cards_amount] => 0.0000 [base_gift_cards_invoiced] => [gift_cards_invoiced] => [base_gift_cards_refunded] => [gift_cards_refunded] => [gift_message_id] => [gw_id] => [gw_allow_gift_receipt] => [gw_add_card] => [gw_base_price] => 0.0000 [gw_price] => 0.0000 [gw_items_base_price] => 0.0000 [gw_items_price] => 0.0000 [gw_card_base_price] => 0.0000 [gw_card_price] => 0.0000 [gw_base_tax_amount] => [gw_tax_amount] => [gw_items_base_tax_amount] => [gw_items_tax_amount] => [gw_card_base_tax_amount] => [gw_card_tax_amount] => [gw_base_price_incl_tax] => [gw_price_incl_tax] => [gw_items_base_price_incl_tax] => [gw_items_price_incl_tax] => [gw_card_base_price_incl_tax] => [gw_card_price_incl_tax] => [gw_base_price_invoiced] => [gw_price_invoiced] => [gw_items_base_price_invoiced] => [gw_items_price_invoiced] => [gw_card_base_price_invoiced] => [gw_card_price_invoiced] => [gw_base_tax_amount_invoiced] => [gw_tax_amount_invoiced] => [gw_items_base_tax_invoiced] => [gw_items_tax_invoiced] => [gw_card_base_tax_invoiced] => [gw_card_tax_invoiced] => [gw_base_price_refunded] => [gw_price_refunded] => [gw_items_base_price_refunded] => [gw_items_price_refunded] => [gw_card_base_price_refunded] => [gw_card_price_refunded] => [gw_base_tax_amount_refunded] => [gw_tax_amount_refunded] => [gw_items_base_tax_refunded] => [gw_items_tax_refunded] => [gw_card_base_tax_refunded] => [gw_card_tax_refunded] => [paypal_ipn_customer_notified] => 0 [reward_points_balance] => [base_reward_currency_amount] => [reward_currency_amount] => [base_rwrd_crrncy_amt_invoiced] => [rwrd_currency_amount_invoiced] => [base_rwrd_crrncy_amnt_refnded] => [rwrd_crrncy_amnt_refunded] => [reward_points_balance_refund] => [mp_smtp_email_marketing_synced] => 0 [seen] => 1 [confirmed_admin_id] => [additional_information] => {"order_source":"ca-ios"} [is_rms_synced] => 0 [rms_sync_date] => [is_rms_sync_failed] => 0 [rms_sync_failed_date] => [is_norma_synced] => 0 [norma_trip_start_time] => [norma_customer_eta] => [norma_time_window_from] => [norma_time_window_to] => [norma_cash_due] => [norma_visa_due] => [norma_payment_used] => [norma_payment_status] => [norma_driver_name] => [norma_driver_mobile] => [norma_latitude] => [norma_longitude] => [norma_customer_start_time] => [cancellation_reason] => [pickers_synced] => 0 [pickers_sync_failed_trials] => 6 [is_picked] => 0 [feedback_comments] => [is_rated] => 0 [mp_smtp_email_marketing_order_created] => 0 [pickup_store_code] => [in_pickers_queue] => [norma_status] => [is_rating_dismissed] => 0 [client_source] => ca-ios [extension_attributes] => Array ( ) [items] => Array ( [1693278] => Array ( ) ) [payment] => Array ( ) [status_histories] => Array ( [882210] => Array ( ) ) [addresses] => Array ( [258330] => Array ( ) [258333] => Array ( ) ) )

preferences:
44.45 ms | 448 KiB | 14 Q