3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ary = json_decode("[ { "h": 29, "s": 17, "l": 133, "price": "", "saleprice": "", "pcat_id": null, "scat_id": null, "pid": 0, "title": "Summer Festivities #1", "description": "", "img": "http:\/\/cdn.yd.com.au\/live\/yd\/productcollectionimages\/14564399-ec5c-42d8-8724-8324f3e6e87f_s68_396_583.png", "url": "http:\/\/www.yd.com.au\/ShopByOutfit.aspx?element=12057&category=1&SelectedCollectionID=4110&SelectedOutfitID=4111", "tags": "pcat:summer-festivities", "json_sub_products": "[{\"url\":\"\",\"img\":\"http:\\\/\\\/cdn.yd.com.au\\\/live\\\/yd\\\/product\\\/images\\\/39103\\\/13cshx15_grnkhaki_1_91_135.png\",\"title\":\"Viper Short\",\"price\":\"sold out\",\"saleprice\":\"\"}]", "size": { "w": 210, "h": 600 }, "v": 141, "r": "141", "g": "136", "b": "125", "a": "1" }, null, { "h": 22, "s": 26, "l": 95, "price": "", "saleprice": "", "pcat_id": null, "scat_id": null, "pid": 2, "title": "Summer Festivities #3", "description": "", "img": "http:\/\/cdn.yd.com.au\/live\/yd\/productcollectionimages\/06f54aaf-f9e2-4d20-b8bc-242d560aed9f_s58_396_583.png", "url": "http:\/\/www.yd.com.au\/ShopByOutfit.aspx?element=12057&category=1&SelectedCollectionID=4110&SelectedOutfitID=4115", "tags": "pcat:summer-festivities", "json_sub_products": "[{\"url\":\"http:\\\/\\\/www.yd.com.au\\\/JONAS-TEE.aspx?p508860&cr=\",\"img\":\"http:\\\/\\\/cdn.yd.com.au\\\/live\\\/yd\\\/product\\\/images\\\/508857\\\/14astx13_grygrey_1_91_135.png\",\"title\":\"Jonas Tee\",\"price\":\"49.99\",\"saleprice\":\"29.99\"},{\"url\":\"http:\\\/\\\/www.yd.com.au\\\/PABLO-SHORT.aspx?p39131&cr=\",\"img\":\"http:\\\/\\\/cdn.yd.com.au\\\/live\\\/yd\\\/product\\\/images\\\/39129\\\/13cshx17_grnkhaki_1_91_135.png\",\"title\":\"Pablo Short\",\"price\":\"69.95\",\"saleprice\":\"39.99\"},{\"url\":\"http:\\\/\\\/www.yd.com.au\\\/FELIPE-CASUAL-SHOE.aspx?p38605&cr=\",\"img\":\"http:\\\/\\\/cdn.yd.com.au\\\/live\\\/yd\\\/product\\\/images\\\/38603\\\/13cfwc14_blkblack_1_91_135.png\",\"title\":\"Felipe Casual Shoe\",\"price\":\"99.95\",\"saleprice\":\"49.99\"}]", "size": { "w": 210, "h": 600 }, "v": 104, "r": "104", "g": "95", "b": "85", "a": "1" } ]", true); print_r($ary);
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'h' (T_STRING) in /in/FZp1j on line 4
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/FZp1j on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/FZp1j on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/FZp1j on line 4
Process exited with code 255.