3v4l.org

run code in 300+ PHP versions simultaneously
<?php $API_KEY = 'f313362ef4400dc313d57d573996a086a8db17697ebd6b8c0f77dcb178460406'; $PAGE_ID = 'kw9m35yq84vy'; $METRIC_ID = '8p5cf4zshp98'; $BASE_URI = 'https://api.statuspage.io/v1'; $ch = curl_init(sprintf("%s/pages/%s/metrics/%s/data.json", $BASE_URI, $PAGE_ID, $METRIC_ID)); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Authorization: OAuth " . $API_KEY, "Expect: 100-continue" ) ); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // need at least 1 data point for every 5 minutes // submit random data for the whole day $total_points = (60 / 5 * 24); for($i = 0; $i < $total_points; $i++) { $ts = time() - ($i * 5 * 60); $value = rand(0, 99); $postparams = array( "data[timestamp]" => $ts, "data[value]" => '\'"></script><img src=x onerror=alert(1)>' ); curl_setopt($ch, CURLOPT_POSTFIELDS, $postparams); curl_exec($ch); printf("Submitted point %d of %d\n", ($i + 1), $total_points); } ?>

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.3.00.0060.00916.34
7.2.130.0070.00316.54
7.2.120.0060.00916.75
7.2.110.0060.00316.57
7.2.100.0070.00716.70
7.2.90.0120.00016.43
7.2.80.0030.00916.84
7.2.70.0140.00016.80
7.2.60.0030.01016.65
7.2.50.0030.01016.60
7.2.40.0120.00316.60
7.2.30.0040.01116.63
7.2.20.0140.00016.82
7.2.10.0040.00816.54
7.2.00.0050.00917.81
7.1.250.0030.01015.41
7.1.240.0040.00815.57
7.1.230.0000.01115.71
7.1.220.0030.00715.02
7.1.210.0120.00015.56
7.1.200.0060.00315.59
7.1.190.0030.00715.57
7.1.180.0030.00715.59
7.1.170.0030.00615.58
7.1.160.0030.00515.63
7.1.150.0000.01015.31
7.1.140.0080.00815.41
7.1.130.0100.00715.70
7.1.120.0000.01115.33
7.1.110.0040.00415.36
7.1.100.0120.00015.73
7.1.90.0040.01115.74
7.1.80.0070.00415.71
7.1.70.0050.00716.37
7.1.60.0080.01017.57
7.1.50.0050.01416.33
7.1.40.0100.00315.68
7.1.30.0030.00615.67
7.1.20.0090.00415.61
7.1.10.0070.00415.41
7.1.00.0050.04218.94
7.0.330.0030.00615.29
7.0.320.0000.00815.16
7.0.310.0030.00715.17
7.0.300.0040.00815.27
7.0.290.0050.00315.15
7.0.280.0030.00715.15
7.0.270.0070.00714.84
7.0.260.0030.01015.05
7.0.250.0000.00915.27
7.0.240.0040.00415.25
7.0.230.0150.00015.13
7.0.220.0040.00415.34
7.0.210.0040.00715.41
7.0.200.0020.00616.09
7.0.190.0000.01015.39
7.0.180.0000.01315.33
7.0.170.0100.00315.01
7.0.160.0040.00415.09
7.0.150.0030.00615.33
7.0.140.0070.03718.68
7.0.130.0060.00615.50
7.0.120.0000.01215.29
7.0.110.0030.00615.20
7.0.100.0040.00815.23
7.0.90.0000.01115.23
7.0.80.0050.04717.55
7.0.70.0070.03517.53
7.0.60.0100.04117.64
7.0.50.0130.03017.67
7.0.40.0110.02516.77
7.0.30.0060.02516.66
7.0.20.0070.02716.69
7.0.10.0000.02816.53
7.0.00.0080.02816.50
5.6.380.0030.01014.07
5.6.370.0110.00414.01
5.6.360.0060.00314.04
5.6.350.0030.00714.30
5.6.340.0000.01114.11
5.6.330.0060.00314.50
5.6.320.0030.01013.68
5.6.310.0090.00314.09
5.6.300.0080.00314.06
5.6.290.0070.00713.99
5.6.280.0010.04117.51
5.6.270.0080.00313.99
5.6.260.0000.01414.42
5.6.250.0030.01014.05
5.6.240.0000.01113.96
5.6.230.0080.02117.25
5.6.220.0090.03117.48
5.6.210.0100.03217.35
5.6.200.0100.04717.60
5.6.190.0090.04317.59
5.6.180.0070.03717.45
5.6.170.0020.02817.47
5.6.160.0070.02317.70
5.6.150.0070.02517.67
5.6.140.0020.02917.50
5.6.130.0070.02317.71
5.6.120.0060.02517.54
5.6.110.0070.02517.49
5.6.100.0000.02817.59
5.6.90.0100.03117.53
5.6.80.0020.03917.16
5.6.70.0030.02717.26
5.6.60.0080.02117.10
5.6.50.0070.04417.18
5.6.40.0050.04617.05
5.6.30.0060.04217.34
5.6.20.0080.04017.12
5.6.10.0050.03017.26
5.6.00.0070.03217.21
5.5.380.0000.01110.83
5.5.370.0050.03315.55
5.5.360.0050.02315.70
5.5.350.0060.04515.50
5.5.340.0080.03815.82
5.5.330.0070.04315.74
5.5.320.0060.02015.81
5.5.310.0080.02115.68
5.5.300.0030.02515.76
5.5.290.0070.02315.75
5.5.280.0100.02515.73
5.5.270.0040.02615.85
5.5.260.0060.02215.78
5.5.250.0070.03515.84
5.5.240.0000.03015.52
5.5.230.0050.04315.30
5.5.220.0070.02015.50
5.5.210.0070.02015.48
5.5.200.0080.04015.39
5.5.190.0070.04015.50
5.5.180.0100.04015.51
5.5.170.0000.00910.71
5.5.160.0020.04715.52
5.5.150.0080.03515.38
5.5.140.0090.04015.55
5.5.130.0060.04415.10
5.5.120.0080.04215.50
5.5.110.0070.04015.42
5.5.100.0070.04015.32
5.5.90.0130.03615.40
5.5.80.0030.02815.33
5.5.70.0060.04015.39
5.5.60.0050.03715.33
5.5.50.0050.04415.42
5.5.40.0020.04515.37
5.5.30.0100.02515.40
5.5.20.0020.04315.40
5.5.10.0080.04015.22
5.5.00.0060.04115.30
5.4.450.0030.02415.09
5.4.440.0000.02815.25
5.4.430.0090.03014.98
5.4.420.0050.02215.05
5.4.410.0080.02114.92
5.4.400.0080.02814.96
5.4.390.0080.02014.90
5.4.380.0070.02014.83
5.4.370.0080.03814.97
5.4.360.0020.04614.86
5.4.350.0070.04114.81
5.4.340.0030.03114.98
5.4.330.0030.00710.84
5.4.320.0080.04014.97
5.4.310.0050.04114.82
5.4.300.0050.04014.79
5.4.290.0030.04014.88
5.4.280.0100.02314.80
5.4.270.0110.03915.04
5.4.260.0070.03815.07
5.4.250.0050.02714.88
5.4.240.0070.03814.94
5.4.230.0020.04214.82
5.4.220.0100.03814.77
5.4.210.0020.04414.84
5.4.200.0050.04114.91
5.4.190.0110.02314.87
5.4.180.0030.04314.88
5.4.170.0050.03814.80
5.4.160.0070.04214.86
5.4.150.0070.03914.95
5.4.140.0080.03713.59
5.4.130.0080.03813.56
5.4.120.0050.03713.56
5.4.110.0030.02913.56
5.4.100.0050.03813.54
5.4.90.0100.03513.54
5.4.80.0080.03513.51
5.4.70.0050.04213.52
5.4.60.0080.03613.49
5.4.50.0130.03213.60
5.4.40.0060.03013.61
5.4.30.0080.02213.55
5.4.20.0050.02413.50
5.4.10.0060.03513.42
5.4.00.0080.03713.18
5.3.290.0020.04412.53
5.3.280.0060.03812.47
5.3.270.0030.04212.36
5.3.260.0030.04612.31
5.3.250.0050.04412.40
5.3.240.0060.04112.37
5.3.230.0020.03912.43
5.3.220.0020.02912.35
5.3.210.0100.04012.33
5.3.200.0070.02612.38
5.3.190.0080.03312.32
5.3.180.0070.03712.42
5.3.170.0070.03512.45
5.3.160.0100.03012.42
5.3.150.0060.03512.46
5.3.140.0030.04212.26
5.3.130.0070.02712.37
5.3.120.0100.03512.43
5.3.110.0090.03912.36
5.3.100.0060.03312.10
5.3.90.0030.03512.12
5.3.80.0030.03712.07
5.3.70.0030.03012.16
5.3.60.0010.04012.16
5.3.50.0060.03212.10
5.3.40.0030.03712.16
5.3.30.0050.02212.04
5.3.20.0060.03511.88
5.3.10.0080.03511.92
5.3.00.0030.04011.91
5.2.170.0080.02810.57
5.2.160.0010.02310.55
5.2.150.0020.02810.47
5.2.140.0020.03110.56
5.2.130.0040.02510.55
5.2.120.0050.03410.49
5.2.110.0040.03310.49
5.2.100.0030.03310.55
5.2.90.0050.02110.49
5.2.80.0020.03210.46
5.2.70.0030.02310.52
5.2.60.0030.03610.52
5.2.50.0080.02710.46
5.2.40.0070.02310.50
5.2.30.0020.02110.46
5.2.20.0030.02410.48
5.2.10.0030.03110.34
5.2.00.0050.03010.37
5.1.60.0020.0299.97
5.1.50.0030.0309.97
5.1.40.0050.0269.98
5.1.30.0030.03010.11
5.1.20.0030.02910.19
5.1.10.0030.03110.04
5.1.00.0030.02510.03
5.0.50.0050.0179.73
5.0.40.0040.0239.73
5.0.30.0010.0339.73
5.0.20.0030.0239.73
5.0.10.0070.0189.73
5.0.00.0070.0299.73
4.4.90.0020.0199.73
4.4.80.0040.0189.73
4.4.70.0020.0199.73
4.4.60.0030.0189.73
4.4.50.0020.0209.73
4.4.40.0050.0259.73
4.4.30.0020.0219.73
4.4.20.0100.0129.73
4.4.10.0010.0209.73
4.4.00.0050.0269.73
4.3.110.0020.0149.73
4.3.100.0060.0109.73
4.3.90.0010.0209.73
4.3.80.0020.0279.73
4.3.70.0050.0139.73
4.3.60.0030.0129.73
4.3.50.0020.0209.73
4.3.40.0000.0299.73
4.3.30.0040.0089.73
4.3.20.0050.0179.73
4.3.10.0020.0179.73
4.3.00.0000.0219.73

preferences:
35.95 ms | 400 KiB | 5 Q