3v4l.org

run code in 300+ PHP versions simultaneously
<?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}}}"));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.10.0100.06020.23
7.0.00.0070.03720.11
5.6.160.0100.08020.59
5.6.150.0130.07018.24
5.6.140.0000.07318.13
5.6.130.0030.08318.19
5.6.120.0130.08321.12
5.6.110.0070.08320.98
5.6.100.0030.06021.08
5.6.90.0000.09020.96
5.6.80.0000.05720.50
5.5.300.0030.04717.98
5.5.290.0200.06718.01
5.5.280.0030.05320.73
5.5.270.0100.06020.88
5.5.260.0130.07720.95
5.5.250.0170.07020.54
5.5.240.0270.07020.07

preferences:
137.03 ms | 1398 KiB | 7 Q