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}}"));

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)
8.3.60.0130.00316.62
8.3.50.0100.01121.01
8.3.40.0100.00718.50
8.3.30.0070.01118.46
8.3.20.0040.00420.21
8.3.10.0000.00821.78
8.3.00.0040.00423.48
8.2.180.0070.00716.63
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.98
8.2.120.0000.00826.35
8.2.110.0060.00321.00
8.2.100.0000.01217.91
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0030.00617.13
8.2.60.0000.00717.90
8.2.50.0000.00818.09
8.2.40.0040.00422.14
8.2.30.0000.00819.22
8.2.20.0030.00517.54
8.2.10.0040.00417.97
8.2.00.0000.00817.84
8.1.280.0110.00425.92
8.1.270.0000.00822.19
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.32
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.22
8.1.190.0050.00317.13
8.1.180.0050.00318.10
8.1.170.0050.00318.46
8.1.160.0050.00320.62
8.1.150.0000.00718.63
8.1.140.0030.00519.31
8.1.130.0050.00317.55
8.1.120.0070.00017.26
8.1.110.0040.00417.33
8.1.100.0000.00817.20
8.1.90.0000.00717.30
8.1.80.0100.00017.31
8.1.70.0040.00417.22
8.1.60.0000.00817.44
8.1.50.0030.00617.24
8.1.40.0040.00717.33
8.1.30.0030.00617.46
8.1.20.0070.00017.54
8.1.10.0040.00417.32
8.1.00.0000.00717.31
8.0.300.0060.00318.77
8.0.290.0050.00316.75
8.0.280.0070.00018.30
8.0.270.0070.00017.12
8.0.260.0030.00317.11
8.0.250.0030.00316.79
8.0.240.0050.00316.70
8.0.230.0000.00716.72
8.0.220.0000.00716.77
8.0.210.0000.00816.75
8.0.200.0030.00316.79
8.0.190.0040.00416.79
8.0.180.0060.00316.79
8.0.170.0050.00316.71
8.0.160.0040.00416.63
8.0.150.0030.00516.65
8.0.140.0000.00716.71
8.0.130.0000.00913.20
8.0.120.0050.00316.59
8.0.110.0040.00416.70
8.0.100.0040.00416.62
8.0.90.0000.00816.74
8.0.80.0000.01716.70
8.0.70.0040.00416.56
8.0.60.0000.00716.72
8.0.50.0030.00616.71
8.0.30.0080.01116.85
8.0.20.0140.00317.40
8.0.10.0070.00016.98
8.0.00.0110.00716.58
7.4.330.0060.00015.08
7.4.320.0030.00316.46
7.4.300.0000.00816.49
7.4.290.0000.00616.32
7.4.280.0040.00416.53
7.4.270.0030.00316.46
7.4.260.0040.00416.43
7.4.250.0070.00016.42
7.4.240.0000.00716.45
7.4.230.0030.00316.50
7.4.220.0100.01016.48
7.4.210.0100.00916.52
7.4.200.0030.00316.21
7.4.160.0030.01316.52
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0100.00816.34
7.4.120.0150.00816.43
7.4.110.0110.00916.39
7.4.100.0090.00916.33
7.4.90.0120.00616.39
7.4.80.0120.00319.39
7.4.70.0110.00516.20
7.4.60.0140.00316.28
7.4.50.0070.00716.18
7.4.40.0130.00316.09
7.4.30.0000.01716.46
7.4.00.0030.01214.81
7.3.330.0000.00513.00
7.3.320.0000.00512.86
7.3.310.0030.00316.19
7.3.300.0040.00416.12
7.3.290.0050.00316.03
7.3.280.0100.00716.14
7.3.270.0170.00517.40
7.3.260.0100.00616.41
7.3.250.0130.00816.22
7.3.240.0110.01116.32
7.3.230.0090.00916.39
7.3.210.0030.01316.29
7.3.200.0080.01119.39
7.3.190.0120.00316.08
7.3.180.0140.00316.10
7.3.170.0120.00816.35
7.3.160.0060.00916.13
7.2.330.0030.01416.23
7.2.320.0040.01416.59
7.2.310.0110.00616.40
7.2.300.0090.00616.33
7.2.290.0130.00316.36
7.2.00.0070.01019.19
7.1.100.0040.00418.00
7.1.70.0040.00417.02
7.1.60.0110.01119.40
7.1.50.0170.01316.89
7.1.00.0030.07722.47
7.0.200.0000.00916.33
7.0.60.0230.03019.93
7.0.50.0130.04017.87
7.0.40.0070.05320.08
7.0.30.0270.07020.13
7.0.20.0300.06320.23
7.0.10.0070.06319.99
7.0.00.0030.04020.08
5.6.280.0070.05721.12
5.6.210.0030.04020.51
5.6.200.0030.08718.13
5.6.190.0000.06020.43
5.6.180.0200.05320.49
5.6.170.0430.06320.71
5.6.160.0030.09020.70
5.6.150.0070.07718.20
5.6.140.0070.07018.09
5.6.130.0130.08318.11
5.6.120.0170.07321.03
5.6.110.0070.06021.02
5.6.100.0030.08020.98
5.6.90.0100.08720.96
5.6.80.0000.09320.39
5.5.350.3300.03320.44
5.5.340.0100.06318.02
5.5.330.0070.04720.19
5.5.320.0630.06720.34
5.5.310.0330.07020.32
5.5.300.0070.08017.91
5.5.290.0100.07018.03
5.5.280.0070.05320.88
5.5.270.0030.08320.72
5.5.260.0100.04020.87
5.5.250.0170.06020.69
5.5.240.0230.07020.37

preferences:
30.01 ms | 401 KiB | 5 Q