3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"items":[{"id":1,"name":"My Christmas List","default":false,"dateAdded":1410307200000,"lastModified":1413303752184,"originSite":"www.bbcgoodfood.com","status":"inactive","thumbnailUrl":"http://i.groceries.asda.com/g/v5/78/53/23131232_213_IDShot_2.jpeg","uniqueRecipes":5,"uniqueRecipeIds":[1,2,3,4,5],"self":{"href":"http://cloudlist.qa.foodity.com/cloudlist/v1/cloudlists/1?api_key=qwerty1234"}},{"id":2,"name":"My Weekly List","default":true,"dateAdded":1410393600000,"lastModified":1413303752185,"originSite":"www.bbcgoodfood.com","status":"active","thumbnailUrl":"http://i.groceries.asda.com/g/v5/78/53/23131232_213_IDShot_2.jpeg","uniqueRecipes":5,"uniqueRecipeIds":[1,2,3,4,5],"self":{"href":"http://cloudlist.qa.foodity.com/cloudlist/v1/cloudlists/2?api_key=qwerty1234"}}],"page":{"number":1,"size":10,"totalPages":1,"totalElements":2},"previous":null,"next":null,"first":{"href":"http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC"},"last":{"href":"http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC"},"self":{"href":"http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC"}}', true));
Output for 5.2.0 - 7.1.0
array(7) { ["items"]=> array(2) { [0]=> array(11) { ["id"]=> int(1) ["name"]=> string(17) "My Christmas List" ["default"]=> bool(false) ["dateAdded"]=> int(1410307200000) ["lastModified"]=> int(1413303752184) ["originSite"]=> string(19) "www.bbcgoodfood.com" ["status"]=> string(8) "inactive" ["thumbnailUrl"]=> string(65) "http://i.groceries.asda.com/g/v5/78/53/23131232_213_IDShot_2.jpeg" ["uniqueRecipes"]=> int(5) ["uniqueRecipeIds"]=> array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } ["self"]=> array(1) { ["href"]=> string(76) "http://cloudlist.qa.foodity.com/cloudlist/v1/cloudlists/1?api_key=qwerty1234" } } [1]=> array(11) { ["id"]=> int(2) ["name"]=> string(14) "My Weekly List" ["default"]=> bool(true) ["dateAdded"]=> int(1410393600000) ["lastModified"]=> int(1413303752185) ["originSite"]=> string(19) "www.bbcgoodfood.com" ["status"]=> string(6) "active" ["thumbnailUrl"]=> string(65) "http://i.groceries.asda.com/g/v5/78/53/23131232_213_IDShot_2.jpeg" ["uniqueRecipes"]=> int(5) ["uniqueRecipeIds"]=> array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) } ["self"]=> array(1) { ["href"]=> string(76) "http://cloudlist.qa.foodity.com/cloudlist/v1/cloudlists/2?api_key=qwerty1234" } } } ["page"]=> array(4) { ["number"]=> int(1) ["size"]=> int(10) ["totalPages"]=> int(1) ["totalElements"]=> int(2) } ["previous"]=> NULL ["next"]=> NULL ["first"]=> array(1) { ["href"]=> string(93) "http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC" } ["last"]=> array(1) { ["href"]=> string(93) "http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC" } ["self"]=> array(1) { ["href"]=> string(93) "http://localhost:9500/cloudlist/v1/cloudlists/?preferredOnly=false&page=0&size=10&sort=id,ASC" } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/usFR8 on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/usFR8 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/usFR8 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/usFR8 on line 2