3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode("{\"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}}"));
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
NULL
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 NULL

preferences:
140.5 ms | 402 KiB | 181 Q