3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1455260079":"Tracking : #34567808765098767 USPS","1455260723":"Delivered","1455261541":"Received Back"}'; $json_array = json_decode($json, true); var_dump($json_array); print_r($json_array); echo $json_array["1455260079"]."\n"; $json_obj = json_decode($json); $json_array = (array) $json_obj; var_dump($json_array); print_r($json_array); echo $json_array["1455260079"]."\n";
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [1455260079]=> string(34) "Tracking : #34567808765098767 USPS" [1455260723]=> string(9) "Delivered" [1455261541]=> string(13) "Received Back" } Array ( [1455260079] => Tracking : #34567808765098767 USPS [1455260723] => Delivered [1455261541] => Received Back ) Tracking : #34567808765098767 USPS array(3) { [1455260079]=> string(34) "Tracking : #34567808765098767 USPS" [1455260723]=> string(9) "Delivered" [1455261541]=> string(13) "Received Back" } Array ( [1455260079] => Tracking : #34567808765098767 USPS [1455260723] => Delivered [1455261541] => Received Back ) Tracking : #34567808765098767 USPS

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:
34.16 ms | 407 KiB | 5 Q