3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"outfits": [{"1": [{"category_id": "women_jeans", "product_id": 464540467}, {"category_id": "women_tops", "product_id": 487351815}, {"category_id": "women_coats", "product_id": 493322686}, {"category_id": "women_bags", "product_id": 483902882}, {"category_id": "women_shoes", "product_id": 492772225}]}]}'; $outfits = json_decode($json); var_dump($outfits);
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#7 (1) { ["outfits"]=> array(1) { [0]=> object(stdClass)#6 (1) { ["1"]=> array(5) { [0]=> object(stdClass)#1 (2) { ["category_id"]=> string(11) "women_jeans" ["product_id"]=> int(464540467) } [1]=> object(stdClass)#2 (2) { ["category_id"]=> string(10) "women_tops" ["product_id"]=> int(487351815) } [2]=> object(stdClass)#3 (2) { ["category_id"]=> string(11) "women_coats" ["product_id"]=> int(493322686) } [3]=> object(stdClass)#4 (2) { ["category_id"]=> string(10) "women_bags" ["product_id"]=> int(483902882) } [4]=> object(stdClass)#5 (2) { ["category_id"]=> string(11) "women_shoes" ["product_id"]=> int(492772225) } } } } }

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:
57.98 ms | 403 KiB | 8 Q