3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"customer_name":{"field":"person"},"customer_email":{"value":"outgoing@gompels.co.uk"},"billing_1":{"field":"address 1"},"billing_2":{"field":"address 2"},"billing_city":[],"billing_county":[],"billing_postcode":{"field":"postcode"},"billing_phone":[],"billing_fax":{"value":0},"shipping_1":{"field":"address 1"},"shipping_2":{"field":"address 2"},"shipping_city":[],"shipping_county":[],"shipping_postcode":{"field":"postcode"},"shipping_phone":[],"shipping_fax":{"value":0},"invoice_1":{"value":"Gompels HealthCare, No.1 Swift Way"},"invoice_2":{"value":"Bowerhill Ind Est"},"invoice_city":{"value":"Melksham"},"invoice_county":{"value":"Wiltshire"},"invoice_postcode":{"value":"SN12 6GX"},"invoice_phone":[],"invoice_fax":[],"company":{"field":"name"},"billing_town":{"field":"town"},"shipping_town":{"field":"town"}}')); var_dump(kson_last_error());
Output for 7.0.0 - 7.0.32, 7.1.0 - 7.1.24, 7.2.0 - 7.2.33, 7.3.12 - 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)#2 (26) { ["customer_name"]=> object(stdClass)#1 (1) { ["field"]=> string(6) "person" } ["customer_email"]=> object(stdClass)#3 (1) { ["value"]=> string(22) "outgoing@gompels.co.uk" } ["billing_1"]=> object(stdClass)#4 (1) { ["field"]=> string(9) "address 1" } ["billing_2"]=> object(stdClass)#5 (1) { ["field"]=> string(9) "address 2" } ["billing_city"]=> array(0) { } ["billing_county"]=> array(0) { } ["billing_postcode"]=> object(stdClass)#6 (1) { ["field"]=> string(8) "postcode" } ["billing_phone"]=> array(0) { } ["billing_fax"]=> object(stdClass)#7 (1) { ["value"]=> int(0) } ["shipping_1"]=> object(stdClass)#8 (1) { ["field"]=> string(9) "address 1" } ["shipping_2"]=> object(stdClass)#9 (1) { ["field"]=> string(9) "address 2" } ["shipping_city"]=> array(0) { } ["shipping_county"]=> array(0) { } ["shipping_postcode"]=> object(stdClass)#10 (1) { ["field"]=> string(8) "postcode" } ["shipping_phone"]=> array(0) { } ["shipping_fax"]=> object(stdClass)#11 (1) { ["value"]=> int(0) } ["invoice_1"]=> object(stdClass)#12 (1) { ["value"]=> string(34) "Gompels HealthCare, No.1 Swift Way" } ["invoice_2"]=> object(stdClass)#13 (1) { ["value"]=> string(17) "Bowerhill Ind Est" } ["invoice_city"]=> object(stdClass)#14 (1) { ["value"]=> string(8) "Melksham" } ["invoice_county"]=> object(stdClass)#15 (1) { ["value"]=> string(9) "Wiltshire" } ["invoice_postcode"]=> object(stdClass)#16 (1) { ["value"]=> string(8) "SN12 6GX" } ["invoice_phone"]=> array(0) { } ["invoice_fax"]=> array(0) { } ["company"]=> object(stdClass)#17 (1) { ["field"]=> string(4) "name" } ["billing_town"]=> object(stdClass)#18 (1) { ["field"]=> string(4) "town" } ["shipping_town"]=> object(stdClass)#19 (1) { ["field"]=> string(4) "town" } } Fatal error: Uncaught Error: Call to undefined function kson_last_error() in /in/NBHk7:5 Stack trace: #0 {main} thrown in /in/NBHk7 on line 5
Process exited with code 255.
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.38
object(stdClass)#1 (26) { ["customer_name"]=> object(stdClass)#2 (1) { ["field"]=> string(6) "person" } ["customer_email"]=> object(stdClass)#3 (1) { ["value"]=> string(22) "outgoing@gompels.co.uk" } ["billing_1"]=> object(stdClass)#4 (1) { ["field"]=> string(9) "address 1" } ["billing_2"]=> object(stdClass)#5 (1) { ["field"]=> string(9) "address 2" } ["billing_city"]=> array(0) { } ["billing_county"]=> array(0) { } ["billing_postcode"]=> object(stdClass)#6 (1) { ["field"]=> string(8) "postcode" } ["billing_phone"]=> array(0) { } ["billing_fax"]=> object(stdClass)#7 (1) { ["value"]=> int(0) } ["shipping_1"]=> object(stdClass)#8 (1) { ["field"]=> string(9) "address 1" } ["shipping_2"]=> object(stdClass)#9 (1) { ["field"]=> string(9) "address 2" } ["shipping_city"]=> array(0) { } ["shipping_county"]=> array(0) { } ["shipping_postcode"]=> object(stdClass)#10 (1) { ["field"]=> string(8) "postcode" } ["shipping_phone"]=> array(0) { } ["shipping_fax"]=> object(stdClass)#11 (1) { ["value"]=> int(0) } ["invoice_1"]=> object(stdClass)#12 (1) { ["value"]=> string(34) "Gompels HealthCare, No.1 Swift Way" } ["invoice_2"]=> object(stdClass)#13 (1) { ["value"]=> string(17) "Bowerhill Ind Est" } ["invoice_city"]=> object(stdClass)#14 (1) { ["value"]=> string(8) "Melksham" } ["invoice_county"]=> object(stdClass)#15 (1) { ["value"]=> string(9) "Wiltshire" } ["invoice_postcode"]=> object(stdClass)#16 (1) { ["value"]=> string(8) "SN12 6GX" } ["invoice_phone"]=> array(0) { } ["invoice_fax"]=> array(0) { } ["company"]=> object(stdClass)#17 (1) { ["field"]=> string(4) "name" } ["billing_town"]=> object(stdClass)#18 (1) { ["field"]=> string(4) "town" } ["shipping_town"]=> object(stdClass)#19 (1) { ["field"]=> string(4) "town" } } Fatal error: Call to undefined function kson_last_error() in /in/NBHk7 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/NBHk7 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/NBHk7 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/NBHk7 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/NBHk7 on line 3

preferences:
278.63 ms | 401 KiB | 420 Q