3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessories = json_decode('{"SMALL ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_FlexBracket_92337.jpg","alt":"SMALL ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""},"FIRE-RATED LISTED DEEP BACKCAN (ROUND)":{"src":"\/assets\/media\/images\/groups\/accessories\/Fire-Rated_Listed_Deep_Backcan_92808_frt.jpg","alt":"FIRE-RATED LISTED DEEP BACKCAN (ROUND)","link":""},"VP4SQ SQUARE ADAPTER W\/ GRILLE (Grille not compatible with legacy models)":{"src":"\/assets\/media\/images\/groups\/accessories\/Square_Adapter_-_Grille.jpg","alt":"VP4SQ SQUARE ADAPTER W\/ GRILLE (Grille not compatible with legacy models)","link":""},"VP4SQ SQUARE ADAPTER W\/ GRILLE (5 PAIR BULK PACK) (Grille not compatible with legacy models)":{"src":"\/assets\/media\/images\/groups\/accessories\/Square_Adapter_-_Grille.jpg","alt":"VP4SQ SQUARE ADAPTER W\/ GRILLE (5 PAIR BULK PACK) (Grille not compatible with legacy models)","link":""},"SMALL ROUND RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Retrofit_Enclosure_92343.jpg","alt":"SMALL ROUND RETROFIT ENCLOSURE","link":""}}'); foreach( $accessories AS $key => $value ) { $udpateAccessories[] = array($key => $value); } echo(json_encode($udpateAccessories));
Output for git.master, git.master_jit, rfc.property-hooks
[{"SMALL ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_FlexBracket_92337.jpg","alt":"SMALL ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""}},{"FIRE-RATED LISTED DEEP BACKCAN (ROUND)":{"src":"\/assets\/media\/images\/groups\/accessories\/Fire-Rated_Listed_Deep_Backcan_92808_frt.jpg","alt":"FIRE-RATED LISTED DEEP BACKCAN (ROUND)","link":""}},{"VP4SQ SQUARE ADAPTER W\/ GRILLE (Grille not compatible with legacy models)":{"src":"\/assets\/media\/images\/groups\/accessories\/Square_Adapter_-_Grille.jpg","alt":"VP4SQ SQUARE ADAPTER W\/ GRILLE (Grille not compatible with legacy models)","link":""}},{"VP4SQ SQUARE ADAPTER W\/ GRILLE (5 PAIR BULK PACK) (Grille not compatible with legacy models)":{"src":"\/assets\/media\/images\/groups\/accessories\/Square_Adapter_-_Grille.jpg","alt":"VP4SQ SQUARE ADAPTER W\/ GRILLE (5 PAIR BULK PACK) (Grille not compatible with legacy models)","link":""}},{"SMALL ROUND RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Retrofit_Enclosure_92343.jpg","alt":"SMALL ROUND RETROFIT ENCLOSURE","link":""}}]

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