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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.08 ms | 403 KiB | 8 Q