3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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":""},"MEDIUM RECTANGLE RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Retrofit_Enclosure_92342.jpg","alt":"MEDIUM RECTANGLE RETROFIT ENCLOSURE","link":""},"MEDIUM RECTANGLE FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_FlexBracket_92336.jpg","alt":"MEDIUM RECTANGLE FLEX BRACKET (5 PAIR PER BOX)","link":""},"MEDIUM RECTANGLE MASONRY BRACKET":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Masonry_Bracket_92066.jpg","alt":"MEDIUM RECTANGLE MASONRY BRACKET","link":""},"MEDIUM RECTANGLE ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Acoustic_Enclosure_91687.jpg","alt":"MEDIUM RECTANGLE ACOUSTIC ENCLOSURE","link":""},"FIRE-RATED LISTED SHALLOW BACKCAN (RECTANGLE)":{"src":"\/assets\/media\/images\/groups\/accessories\/Fire-Rated_Listed_Shallow_Backcan_92807_frt.jpg","alt":"FIRE-RATED LISTED SHALLOW BACKCAN (RECTANGLE)","link":""},"MEDIUM ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_FlexBracket_92337.jpg","alt":"MEDIUM ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""},"MEDIUM ROUND\/SQUARE RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Retrofit_Enclosure_92343.jpg","alt":"MEDIUM ROUND\/SQUARE RETROFIT ENCLOSURE","link":""},"MEDIUM ROUND ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Acoustic_Enclosure_91688.jpg","alt":"MEDIUM ROUND ACOUSTIC ENCLOSURE","link":""},"LARGE ROUND RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Retrofit_Enclosure_92243.jpg","alt":"LARGE ROUND RETROFIT ENCLOSURE","link":""},"LARGE ROUND ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Acoustic_Enclosure_91900.jpg","alt":"LARGE ROUND ACOUSTIC ENCLOSURE","link":""},"LARGE ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Flexbracket_92247.jpg","alt":"LARGE ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""}}'); foreach( $accessories AS $key => $value ) { $udpateAccessories[] = array($key => $value); } echo(json_encode($udpateAccessories));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
[{"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":""}},{"MEDIUM RECTANGLE RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Retrofit_Enclosure_92342.jpg","alt":"MEDIUM RECTANGLE RETROFIT ENCLOSURE","link":""}},{"MEDIUM RECTANGLE FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_FlexBracket_92336.jpg","alt":"MEDIUM RECTANGLE FLEX BRACKET (5 PAIR PER BOX)","link":""}},{"MEDIUM RECTANGLE MASONRY BRACKET":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Masonry_Bracket_92066.jpg","alt":"MEDIUM RECTANGLE MASONRY BRACKET","link":""}},{"MEDIUM RECTANGLE ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Rectangle_Acoustic_Enclosure_91687.jpg","alt":"MEDIUM RECTANGLE ACOUSTIC ENCLOSURE","link":""}},{"FIRE-RATED LISTED SHALLOW BACKCAN (RECTANGLE)":{"src":"\/assets\/media\/images\/groups\/accessories\/Fire-Rated_Listed_Shallow_Backcan_92807_frt.jpg","alt":"FIRE-RATED LISTED SHALLOW BACKCAN (RECTANGLE)","link":""}},{"MEDIUM ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_FlexBracket_92337.jpg","alt":"MEDIUM ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""}},{"MEDIUM ROUND\/SQUARE RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Retrofit_Enclosure_92343.jpg","alt":"MEDIUM ROUND\/SQUARE RETROFIT ENCLOSURE","link":""}},{"MEDIUM ROUND ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Medium_Round_Acoustic_Enclosure_91688.jpg","alt":"MEDIUM ROUND ACOUSTIC ENCLOSURE","link":""}},{"LARGE ROUND RETROFIT ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Retrofit_Enclosure_92243.jpg","alt":"LARGE ROUND RETROFIT ENCLOSURE","link":""}},{"LARGE ROUND ACOUSTIC ENCLOSURE":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Acoustic_Enclosure_91900.jpg","alt":"LARGE ROUND ACOUSTIC ENCLOSURE","link":""}},{"LARGE ROUND FLEX BRACKET (5 PAIR PER BOX)":{"src":"\/assets\/media\/images\/groups\/accessories\/Large_Round_Flexbracket_92247.jpg","alt":"LARGE ROUND FLEX BRACKET (5 PAIR PER BOX)","link":""}}]
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/Ic9G9 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/Ic9G9 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/Ic9G9 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/Ic9G9 on line 3