3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = ' { "status": "ok", "totalResults": 394877, "articles": [{ "source": { "id": "engadget", "name": "Engadget" }, "author": "https://www.engadget.com/about/editors/kris-holt", "title": "Uber, PayPal and Walgreens set up a Vaccine Access Fund", "description": "Anyone can donate and help to cover the cost of rides to COVID-19 vaccination sites.", "url": "https://www.engadget.com/uber-paypal-walgreens-vaccine-access-fund-donations-150056875.html", "urlToImage": "https://s.yimg.com/os/creatr-uploaded-images/2021-04/6031a890-9b9d-11eb-93bf-f9d0aa515883", "publishedAt": "2021-04-12T15:00:56Z", "content": "Uber\r\n has teamed up with PayPal\r\n and Walgreens\r\n to create a Vaccine Access Fund\r\n with the aim of covering the cost of trips to COVID-19 vaccination sites, especially for people in underserved com… [+1471 chars]" }, { "source": { "id": "engadget", "name": "Engadget" }, "author": "https://www.engadget.com/about/editors/jon-fingas", "title": "Alexa can help you find a COVID-19 vaccination site", "description": "Amazon Alexa now helps you find nearby COVID-19 vaccination sites, and call them if you have vaccine questions.", "url": "https://www.engadget.com/amazon-alexa-covid-19-vaccination-site-151440856.html", "urlToImage": "https://s.yimg.com/os/creatr-uploaded-images/2021-04/73830b10-a1e6-11eb-bdf2-57fabbd8c037", "publishedAt": "2021-04-20T15:14:40Z", "content": "Now that every adult in the US is eligible for a COVID-19 vaccine, Amazon wants to make it as simple as possible to get your shots. Alexa now helps you find vaccination sites just by saying \"where ca…[+938 chars]" }] } '; $decoded = json_decode($json, true); // var_export($decoded['articles']); foreach ($decoded['articles'] as $article) { echo $article['title'] . "\n"; }

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.4.120.0040.00622.12
8.4.110.0090.01120.43
8.4.100.0100.01017.66
8.4.90.0130.00620.36
8.4.80.0070.00418.85
8.4.70.0130.00618.99
8.4.60.0160.00620.59
8.4.50.0060.00320.73
8.4.40.0090.00019.37
8.4.30.0110.00818.82
8.4.20.0070.01318.58
8.4.10.0060.00317.89
8.3.250.0110.00818.62
8.3.240.0130.00716.34
8.3.230.0130.00616.66
8.3.220.0030.00419.05
8.3.210.0110.00818.39
8.3.200.0050.00416.51
8.3.190.0090.00317.01
8.3.180.0110.00721.02
8.3.170.0180.00017.20
8.3.160.0100.00716.75
8.3.150.0150.00418.38
8.3.140.0040.01118.78
8.3.130.0030.01016.39
8.3.120.0150.00418.88
8.3.110.0060.00316.65
8.3.100.0060.00316.48
8.3.90.0040.00426.77
8.3.80.0060.00316.38
8.3.70.0000.01518.37
8.3.60.0150.00016.63
8.3.50.0090.00916.52
8.3.40.0090.00618.68
8.3.30.0160.00018.71
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0070.00717.47
8.2.280.0150.00418.40
8.2.270.0070.01118.48
8.2.260.0060.00316.69
8.2.250.0040.00416.78
8.2.240.0000.01018.25
8.2.230.0100.00020.94
8.2.220.0060.00324.06
8.2.210.0050.00326.77
8.2.200.0040.00416.63
8.2.190.0060.00918.54
8.2.180.0090.00625.92
8.2.170.0140.00719.08
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00620.93
8.2.110.0070.00319.39
8.2.100.0060.00619.64
8.2.90.0000.00918.03
8.2.80.0030.00618.05
8.2.70.0050.00518.05
8.2.60.0000.00718.34
8.2.50.0040.00418.10
8.2.40.0080.00019.28
8.2.30.0050.00519.42
8.2.20.0020.00518.08
8.2.10.0000.00719.20
8.2.00.0040.00419.31
8.1.330.0150.00817.78
8.1.320.0090.01116.48
8.1.310.0040.01517.63
8.1.300.0090.00618.61
8.1.290.0090.00030.84
8.1.280.0060.01225.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.50
8.1.230.0070.00422.68
8.1.220.0060.00317.76
8.1.210.0000.00818.89
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00818.96
8.1.150.0000.00718.91
8.1.140.0050.00218.93
8.1.130.0030.00320.16
8.1.120.0040.00417.49
8.1.110.0000.00917.44
8.1.100.0000.00717.36
8.1.90.0040.00417.39
8.1.80.0000.00717.39
8.1.70.0030.00317.38
8.1.60.0040.00417.51
8.1.50.0040.00417.54
8.1.40.0040.00417.60
8.1.30.0080.00017.57
8.1.20.0060.00317.57
8.1.10.0040.00417.48
8.1.00.0060.00317.40
8.0.300.0000.00819.60
8.0.290.0000.00816.75
8.0.280.0030.00518.50
8.0.270.0030.00316.75
8.0.260.0030.00318.53
8.0.250.0030.00616.97
8.0.240.0080.00017.00
8.0.230.0030.00316.84
8.0.220.0050.00316.91
8.0.210.0040.00416.89
8.0.200.0060.00016.94
8.0.190.0020.00517.04
8.0.180.0040.00416.97
8.0.170.0070.00316.82
8.0.160.0040.00416.93
8.0.150.0000.00716.88
8.0.140.0030.00716.80
8.0.130.0060.00313.38
8.0.120.0000.00716.89
8.0.110.0030.00516.88
8.0.100.0070.00016.97
8.0.90.0040.00416.84
8.0.80.0110.00816.83
8.0.70.0030.00516.75
8.0.60.0040.00416.75
8.0.50.0070.00016.72
8.0.30.0240.00916.86
8.0.20.0290.00016.91
8.0.10.0290.00317.04
8.0.00.0260.00817.04
7.4.330.0050.00015.55
7.4.320.0060.00016.67
7.4.300.0060.00016.63
7.4.290.0050.00216.55
7.4.280.0040.00416.61
7.4.270.0000.00716.48
7.4.260.0000.00716.51
7.4.250.0000.00916.41
7.4.240.0030.00316.53
7.4.230.0030.00316.37
7.4.220.0040.00316.57
7.4.210.0100.00716.52
7.4.200.0030.00316.43
7.4.160.0280.00516.71
7.4.150.0210.01216.44
7.4.140.0150.01916.44
7.4.130.0200.00916.44
7.4.120.0270.00616.53
7.4.110.0250.00316.46
7.4.100.0240.01016.61
7.4.90.0340.00316.48
7.4.80.0250.00616.47
7.4.70.0240.00516.48
7.4.60.0150.01516.40
7.4.50.0190.00916.23
7.4.40.0190.01016.27
7.4.30.0270.00416.34
7.4.20.0240.00816.49
7.4.10.0170.01816.43
7.4.00.0160.01216.53
7.3.330.0070.00016.38
7.3.320.0060.00013.02
7.3.310.0020.00516.24
7.3.300.0020.00516.31
7.3.290.0070.00916.23
7.3.280.0060.01016.19
7.3.270.0260.00616.25
7.3.260.0220.00916.27
7.3.250.0200.01016.25
7.3.240.0200.00616.26
7.3.230.0130.01716.25
7.3.220.0250.00716.18
7.3.210.0260.00416.20
7.3.200.0250.00716.28
7.3.190.0170.01016.18
7.3.180.0210.00716.19
7.3.170.0310.00016.15
7.3.160.0160.01216.19
7.3.150.0240.00716.07
7.3.140.0200.01316.37
7.3.130.0280.00416.21
7.3.120.0190.01616.23
7.3.110.0190.00616.16
7.3.100.0180.00916.14
7.3.90.0220.00616.39
7.3.80.0130.01516.15
7.3.70.0130.02116.37
7.3.60.0250.00716.34
7.3.50.0270.00416.42
7.3.40.0230.00316.42
7.3.30.0200.00616.33
7.3.20.0220.00216.29
7.3.10.0140.01416.30
7.3.00.0200.00816.41

preferences:
18.57 ms | 403 KiB | 5 Q