3v4l.org

run code in 300+ PHP versions simultaneously
<?php http_response_code(403); /* setcookie() will add a response header on its own */ setcookie('foo', 'bar'); /* Define a custom response header This will be ignored by most clients */ header("X-Sample-Test: foo"); /* Specify plain text content in our response */ header('Content-type: text/plain'); /* What headers are going to be sent? */ var_dump(headers_list());

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.70.0130.00716.63
8.3.60.0140.00018.56
8.3.50.0110.00421.96
8.3.40.0070.00718.75
8.3.30.0070.00718.96
8.3.20.0040.00420.33
8.3.10.0080.00021.96
8.3.00.0040.00422.46
8.2.190.0180.00418.14
8.2.180.0120.00316.38
8.2.170.0110.00322.96
8.2.160.0090.00618.99
8.2.150.0000.00824.18
8.2.140.0180.00024.66
8.2.130.0130.00626.16
8.2.120.0060.00321.06
8.2.110.0060.00320.43
8.2.100.0070.00417.72
8.2.90.0040.00418.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.66
8.2.50.0090.00018.07
8.2.40.0000.00917.97
8.2.30.0000.00717.81
8.2.20.0040.00417.46
8.2.10.0070.00017.60
8.2.00.0070.00017.46
8.1.280.0100.00325.92
8.1.270.0080.00022.20
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00822.18
8.1.230.0070.00420.91
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.30
8.1.180.0040.00418.60
8.1.170.0000.00818.66
8.1.160.0030.00322.18
8.1.150.0040.00418.51
8.1.140.0030.00617.37
8.1.130.0030.00317.68
8.1.120.0030.00317.25
8.1.110.0000.00917.32
8.1.100.0000.00717.32
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0000.00717.30
8.1.60.0060.00317.46
8.1.50.0000.00817.37
8.1.40.0040.00417.29
8.1.30.0040.00417.53
8.1.20.0060.00317.55
8.1.10.0040.00417.24
8.1.00.0040.00417.29
8.0.300.0000.00820.04
8.0.290.0040.00417.03
8.0.280.0080.00018.22
8.0.270.0030.00317.01
8.0.260.0030.00316.59
8.0.250.0000.00716.72
8.0.240.0040.00416.91
8.0.230.0000.00716.79
8.0.220.0000.00616.71
8.0.210.0040.00416.71
8.0.200.0050.00216.80
8.0.190.0040.00416.82
8.0.180.0070.00016.78
8.0.170.0040.00416.63
8.0.160.0040.00416.69
8.0.150.0040.00416.61
8.0.140.0040.00416.60
8.0.130.0030.00313.19
8.0.120.0050.00316.61
8.0.110.0000.00816.66
8.0.100.0030.00416.66
8.0.90.0050.00216.83
8.0.80.0000.01616.80
8.0.70.0040.00416.77
8.0.60.0040.00416.62
8.0.50.0030.00516.58
8.0.30.0150.00416.96
8.0.20.0060.01117.40
8.0.10.0040.00416.81
8.0.00.0090.00916.75
7.4.330.0050.00015.00
7.4.320.0060.00016.36
7.4.300.0070.00016.45
7.4.290.0030.00316.51
7.4.280.0050.00316.45
7.4.270.0030.00316.37
7.4.260.0030.00316.45
7.4.250.0040.00416.35
7.4.240.0050.00316.43
7.4.230.0000.00716.58
7.4.220.0030.02316.50
7.4.210.0050.01316.57
7.4.200.0040.00416.47
7.4.190.0030.00316.52
7.4.160.0070.01016.15
7.4.150.0090.00817.40
7.4.140.0090.00917.86
7.4.130.0120.00516.32
7.4.120.0150.00316.33
7.4.110.0050.01416.13
7.4.100.0070.01016.30
7.4.90.0100.01416.34
7.4.80.0100.00619.39
7.4.70.0090.00816.36
7.4.60.0060.00916.43
7.4.50.0030.00315.98
7.4.40.0070.00722.77
7.4.30.0110.00816.49
7.4.00.0070.00914.82
7.3.330.0000.00513.04
7.3.320.0050.00012.84
7.3.310.0030.00316.21
7.3.300.0030.00316.13
7.3.290.0110.00316.08
7.3.280.0100.00616.12
7.3.270.0070.01017.40
7.3.260.0080.01116.47
7.3.250.0060.01316.23
7.3.240.0100.00616.08
7.3.230.0070.01116.39
7.3.210.0040.01216.19
7.3.200.0130.00319.39
7.3.190.0070.01016.11
7.3.180.0030.01316.23
7.3.170.0060.01116.27
7.3.160.0110.00416.01
7.3.120.0080.00914.52
7.3.110.0030.01514.57
7.3.100.0060.00914.86
7.3.90.0030.00614.36
7.3.80.0030.01414.70
7.3.70.0070.00714.55
7.3.60.0100.00714.43
7.3.50.0030.00914.62
7.3.40.0080.00314.53
7.3.30.0070.00714.51
7.3.20.0030.01216.61
7.3.10.0060.00616.47
7.3.00.0130.00316.59
7.2.330.0060.01116.14
7.2.320.0130.01016.22
7.2.310.0090.00816.27
7.2.300.0070.01416.47
7.2.290.0140.00416.46
7.2.250.0110.00414.82
7.2.240.0000.01714.91
7.2.230.0150.00314.86
7.2.220.0090.00614.80
7.2.210.0040.00714.66
7.2.200.0060.01014.95
7.2.190.0090.00914.95
7.2.180.0000.01414.92
7.2.170.0060.00614.59
7.2.00.0100.00319.50
7.1.330.0060.00615.71
7.1.320.0030.00715.44
7.1.310.0060.00315.55
7.1.300.0130.00315.32
7.1.290.0100.00315.66
7.1.280.0000.01515.83
7.1.270.0090.00615.70
7.1.260.0000.01815.64
7.1.200.0080.00015.41
7.1.100.0060.00917.80
7.1.70.0110.00316.90
7.1.60.0100.01319.82
7.1.50.0070.01716.87
7.1.00.0030.07322.32
7.0.200.0060.00616.61
7.0.140.0070.07022.05
7.0.70.3830.03319.93
7.0.60.0070.07019.95
7.0.50.0170.06317.84
7.0.40.0030.05320.26
7.0.30.0200.08020.12
7.0.20.0170.04320.21
7.0.10.0200.04720.16
7.0.00.0200.07020.16
5.6.280.0030.07321.12
5.6.210.0100.06020.65
5.6.200.0070.03718.17
5.6.190.0030.09320.57
5.6.180.0230.04320.39
5.6.170.0130.04320.38
5.6.160.0130.07720.37
5.6.150.0030.07018.13
5.6.140.0070.06018.09
5.6.130.0030.04018.20
5.6.120.0030.04321.02
5.6.110.0230.07021.04
5.6.100.0070.03721.13
5.6.90.0000.08720.94
5.6.80.0030.05020.49
5.6.70.0300.06720.49
5.5.350.0130.07320.42
5.5.340.0030.03717.98
5.5.330.0030.04320.23
5.5.320.0030.05320.29
5.5.310.0300.06020.32
5.5.300.0070.03717.98
5.5.290.0100.07717.92
5.5.280.0100.07320.89
5.5.270.0030.07320.86
5.5.260.0130.07320.87
5.5.250.0130.07320.64
5.5.240.0030.05720.25
5.4.450.0670.05319.47
5.4.440.0670.06319.52
5.4.430.0500.06019.51
5.4.420.0270.06719.52
5.4.410.1030.07019.32
5.4.400.0100.05019.25
5.4.390.0130.05319.29
5.4.380.0100.06318.49
5.4.370.0270.03718.57
5.4.360.0100.04018.61
5.4.350.0090.03811.97
5.4.340.0060.03611.97
5.4.320.0060.03612.45
5.4.310.0050.04412.45
5.4.300.0080.03312.45
5.4.290.0040.04112.45
5.4.280.0020.04112.35
5.4.270.0080.03612.34
5.4.260.0070.05018.85
5.4.250.0100.05018.74
5.4.240.0070.05318.95
5.4.230.0100.04718.84
5.4.220.0030.06018.66
5.4.210.0170.04318.98
5.4.200.0070.05319.00
5.4.190.0000.05718.70
5.4.180.0100.05018.73
5.4.170.0170.05718.73
5.4.160.0100.05018.70
5.4.150.0100.07318.86
5.4.140.0070.05716.30
5.4.130.0130.04016.28
5.4.120.0100.04716.26
5.4.110.0170.04316.49
5.4.100.0030.07316.37
5.4.90.0130.05016.49
5.4.80.0100.04316.48
5.4.70.0100.05016.27
5.4.60.0030.05016.35
5.4.50.0000.06016.23
5.4.40.0070.05016.49
5.4.30.0100.04316.26
5.4.20.0100.05016.43
5.4.10.0200.05316.29
5.4.00.0170.04315.74
5.3.290.0070.03812.80
5.3.280.0100.05014.51
5.3.270.0100.07714.60
5.3.260.0170.04314.62
5.3.250.0070.05314.47
5.3.240.0030.05714.62
5.3.230.0070.07314.74
5.3.220.0100.05314.27
5.3.210.0100.06314.65
5.3.200.0100.05014.71
5.3.190.0130.05014.56
5.3.180.0100.04714.57
5.3.170.0130.04714.57
5.3.160.0030.05314.57
5.3.150.0070.05014.57
5.3.140.0030.05314.42
5.3.130.0030.05314.56
5.3.120.0070.05014.70
5.3.110.0070.05014.55
5.3.100.0100.04714.02
5.3.90.0170.04014.06
5.3.80.0100.04714.11
5.3.70.0100.04714.16
5.3.60.0100.04713.93
5.3.50.0030.07713.80
5.3.40.0100.05013.80
5.3.30.0100.04313.91
5.3.20.0100.04313.46
5.3.10.0170.05713.69
5.3.00.0170.06313.65
5.2.170.0070.04011.29
5.2.160.0100.03711.14
5.2.150.0100.03711.14
5.2.140.0100.03711.14
5.2.130.0030.04011.03
5.2.120.0070.03711.20
5.2.110.0130.03311.11
5.2.100.0200.04011.09
5.2.90.0100.03711.03
5.2.80.0200.04010.93
5.2.70.0130.03711.01
5.2.60.0070.04310.88
5.2.50.0030.04011.03
5.2.40.0100.03710.92
5.2.30.0130.03310.73
5.2.20.0070.04010.84
5.2.10.0070.03711.07
5.2.00.0100.04010.87
5.1.60.0030.03710.04
5.1.50.0030.04310.08
5.1.40.0070.0309.86
5.1.30.0000.04010.39
5.1.20.0100.03010.43
5.1.10.0030.03310.25
5.1.00.0030.03310.12
5.0.50.0030.0278.45
5.0.40.0100.0208.64
5.0.30.0030.0537.98
5.0.20.0030.0378.15
5.0.10.0030.0278.25
5.0.00.0070.0478.21
4.4.90.0030.0206.51
4.4.80.0000.0236.51
4.4.70.0070.0276.51
4.4.60.0030.0306.51
4.4.50.0070.0176.51
4.4.40.0030.0336.51
4.4.30.0030.0236.46
4.4.20.0030.0206.43
4.4.10.0030.0206.39
4.4.00.0000.0336.37
4.3.110.0030.0206.63
4.3.100.0070.0206.63
4.3.90.0070.0176.63
4.3.80.0030.0376.63
4.3.70.0030.0276.63
4.3.60.0030.0206.63
4.3.50.0000.0236.63
4.3.40.0000.0376.63
4.3.30.0000.0236.63
4.3.20.0030.0236.63
4.3.10.0030.0276.63
4.3.00.0100.0237.80

preferences:
37.74 ms | 401 KiB | 5 Q