3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode("{json": "{\"cooking_time\":\"55\",\"calories\":\"132\",\"ingredients\":{\"0\":{\"ingredient_id\":\"100\",\"quantity\":\"100\",\"description\":\"\",\"informal\":\"0\",\"id\":0},\"1\":{\"ingredient_id\":\"112\",\"quantity\":\"250\",\"description\":\"\",\"informal\":\"0\",\"id\":1},\"2\":{\"ingredient_id\":\"113\",\"quantity\":\"75\",\"description\":\"chopped\",\"informal\":\"0\",\"id\":2},\"3\":{\"ingredient_id\":\"114\",\"quantity\":\"50\",\"description\":\"\",\"informal\":\"0\",\"id\":3},\"4\":{\"ingredient_id\":\"115\",\"quantity\":\"40\",\"description\":\"\",\"informal\":\"0\",\"id\":4},\"5\":{\"ingredient_id\":\"116\",\"quantity\":\"150\",\"description\":\"\",\"informal\":\"0\",\"id\":5},\"6\":{\"ingredient_id\":\"77\",\"quantity\":\"2\",\"description\":\"beaten\",\"informal\":\"0\",\"id\":6},\"7\":{\"ingredient_id\":\"118\",\"quantity\":\"1\",\"description\":\"mashed\",\"informal\":\"0\",\"id\":7}},\"frozen_note\":\"Suitable for freezing\",\"ingredient_ids\":[\"100\",\"112\",\"113\",\"114\",\"115\",\"116\",\"77\",\"118\"],\"method\":{\"0\":{\"content\":\"Put the bran flakes into a mixing bowl and add the milk, apricots and sultanas. Stir well. Cover and leave to soak in a cool place for 1 hour, stirring from time to time.\",\"id\":0},\"1\":{\"content\":\"Preheat the oven to 180\u00b0C, fan oven 160\u00b0C, gas mark 4. Line a 900g (2lb) loaf tin with greaseproof paper.\",\"id\":1},\"2\":{\"content\":\"Add the sugar, flour, beaten eggs and mashed banana to the soaked mixture and stir thoroughly. Spoon this mixture into the prepared tin.\",\"id\":2},\"3\":{\"content\":\"Transfer to the middle shelf of the oven and bake for 50-55 minutes. Cool in the tin for 10 minutes, then turn out carefully and cool on a wire rack.\",\"id\":3}},\"note\":\"\/n\",\"nutrition\":\"Per portion (1\/12 recipe)\/n560kJ \/ 132kcals\/n4.5g protein\/n2g fat of which 0.6g saturates\/n26g carbohydrate of which 13g sugars\/n2g dietary fibre\/n138mg sodium\/n0.3g salt\/n\",\"prep_time\":\"20\",\"serves\":\"12\",\"short_url\":\"http:\/\/goo.gl\/APwJZ\",\"tips\":{\"0\":{\"content\":\"You could ring the changes by using dried cherries or dried blueberries instead of apricots, and replacing the sultanas with raisins.\",\"id\":0},\"1\":{\"content\":\"Keep the cake in an airtight tin and use within 1 week. If you like, freeze individual slices in small freezer bags, ready to take for a packed lunch - they will have defrosted by midday.\",\"id\":1}}}"));
based on LaKuV
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ':', expecting ',' or ')' in /in/uRG4D on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.16
Parse error: syntax error, unexpected ':' in /in/uRG4D on line 3
Process exited with code 255.