3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* $fp = fsockopen("127.0.0.1", 80, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $out = "GET / HTTP/1.1\r\n"; $out .= "Host: www.example.com\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); while (!feof($fp)) { echo fgets($fp, 128); } fclose($fp); } */ false || $s_result = 'fail';

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.0070.01116.50
8.3.50.0130.00521.14
8.3.40.0110.00718.54
8.3.30.0120.00319.09
8.3.20.0040.00420.09
8.3.10.0050.00321.90
8.3.00.0040.00422.39
8.2.180.0120.00316.38
8.2.170.0140.00422.96
8.2.160.0070.00719.20
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00317.90
8.2.110.0090.00022.14
8.2.100.0080.00419.21
8.2.90.0040.00419.23
8.2.80.0000.00819.21
8.2.70.0050.00317.63
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0060.00318.17
8.2.30.0050.00317.97
8.2.20.0040.00417.58
8.2.10.0030.00517.77
8.2.00.0030.00717.71
8.1.280.0150.00625.92
8.1.270.0000.00820.43
8.1.260.0100.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00023.84
8.1.230.0110.00019.01
8.1.220.0050.00317.76
8.1.210.0080.00018.77
8.1.200.0090.00017.22
8.1.190.0040.00417.54
8.1.180.0000.00818.51
8.1.170.0030.00618.55
8.1.160.0000.00722.16
8.1.150.0000.00718.58
8.1.140.0050.00217.42
8.1.130.0060.00317.80
8.1.120.0080.00017.36
8.1.110.0040.00417.34
8.1.100.0040.00417.41
8.1.90.0040.00417.36
8.1.80.0000.00817.33
8.1.70.0070.00017.44
8.1.60.0060.00317.56
8.1.50.0090.00017.39
8.1.40.0040.00417.47
8.1.30.0000.00817.52
8.1.20.0000.00817.60
8.1.10.0040.00417.45
8.1.00.0050.00217.37
8.0.300.0000.00718.77
8.0.290.0050.00217.18
8.0.280.0030.00318.33
8.0.270.0030.00317.16
8.0.260.0050.00316.84
8.0.250.0040.00416.91
8.0.240.0050.00316.95
8.0.230.0000.00716.78
8.0.220.0000.00716.82
8.0.210.0050.00316.91
8.0.200.0000.00616.98
8.0.190.0030.00616.82
8.0.180.0040.00416.88
8.0.170.0070.00016.79
8.0.160.0030.00616.76
8.0.150.0030.00416.73
8.0.140.0040.00416.84
8.0.130.0000.00613.27
8.0.120.0030.00616.73
8.0.110.0070.00016.91
8.0.100.0050.00516.74
8.0.90.0040.00416.90
8.0.80.0120.00416.85
8.0.70.0040.00416.76
8.0.60.0000.00716.74
8.0.50.0000.00716.76
8.0.30.0100.00817.25
8.0.20.0070.01317.40
8.0.10.0050.00216.87
8.0.00.0070.01016.66
7.4.330.0020.00215.00
7.4.320.0030.00316.55
7.4.300.0000.00616.43
7.4.290.0000.00716.49
7.4.280.0040.00416.54
7.4.270.0070.00016.51
7.4.260.0030.00316.49
7.4.250.0000.00716.59
7.4.240.0040.00416.54
7.4.230.0000.00616.48
7.4.220.0060.01216.45
7.4.210.0090.00616.54
7.4.200.0030.00316.69
7.4.190.0070.00016.66
7.4.160.0070.00716.61
7.4.150.0140.00317.40
7.4.140.0080.01417.86
7.4.130.0160.00216.41
7.4.120.0040.01316.47
7.4.110.0100.00616.48
7.4.100.0070.01116.43
7.4.90.0100.01016.47
7.4.80.0100.00719.39
7.4.70.0070.01016.54
7.4.60.0110.01116.43
7.4.50.0000.00416.29
7.4.40.0040.01522.77
7.4.30.0100.00716.29
7.4.00.0070.00715.10
7.3.330.0050.00013.00
7.3.320.0000.00713.02
7.3.310.0000.00716.17
7.3.300.0030.00316.11
7.3.290.0080.00516.06
7.3.280.0100.00816.17
7.3.270.0100.00717.40
7.3.260.0130.00316.49
7.3.250.0120.00516.42
7.3.240.0000.01616.17
7.3.230.0110.00416.39
7.3.210.0060.01416.11
7.3.200.0050.01019.39
7.3.190.0090.00616.39
7.3.180.0000.01616.39
7.3.170.0150.00616.43
7.3.160.0070.01316.48
7.3.120.0000.01414.82
7.2.330.0130.00316.30
7.2.320.0050.01716.48
7.2.310.0060.00916.30
7.2.300.0030.01316.67
7.2.290.0080.00816.30
7.2.00.0000.01019.24
7.1.100.0070.00318.18
7.1.70.0070.00416.73
7.1.60.0060.00619.82
7.1.50.0030.01316.95
7.1.00.0000.03722.48
7.0.200.0050.00516.64
7.0.140.0070.07022.09
7.0.60.0200.07020.00
7.0.50.0070.08017.80
7.0.40.0030.06720.14
7.0.30.0330.06020.00
7.0.20.0170.06720.09
7.0.10.0230.08720.18
7.0.00.0130.07720.20
5.6.280.0100.09021.07
5.6.210.0070.05320.51
5.6.200.0030.08318.19
5.6.190.0070.05720.61
5.6.180.3470.04320.43
5.6.170.0230.08320.51
5.6.160.0030.08720.38
5.6.150.0030.04318.19
5.6.140.0070.05318.11
5.6.130.0000.05318.21
5.6.120.0070.05721.00
5.6.110.0070.08020.97
5.6.100.0170.06021.00
5.6.90.0030.05021.11
5.6.80.0130.07020.47
5.6.70.0170.08020.34
5.5.350.0100.03320.41
5.5.340.0000.04017.89
5.5.330.0070.04020.13
5.5.320.0230.03320.27
5.5.310.0400.04720.51
5.5.300.0100.06318.00
5.5.290.0000.04717.92
5.5.280.0200.07020.61
5.5.270.0100.07720.88
5.5.260.0130.07720.75
5.5.250.0070.07320.70
5.5.240.0070.07320.25
5.4.450.0970.05719.11
5.4.440.0630.06319.27
5.4.430.0130.05019.61
5.4.420.1170.06319.48
5.4.410.0930.07719.50
5.4.400.0270.05718.52
5.4.390.0400.05018.60
5.4.380.0370.04318.77
5.4.370.0200.04318.61
5.4.360.0270.03718.53
5.4.350.0050.04111.97
5.4.340.0080.03811.97
5.4.320.0080.03412.45
5.4.310.0040.03912.45
5.4.300.0060.03512.46
5.4.290.0060.03812.45
5.4.280.0040.03612.34
5.4.270.0110.04212.34
5.4.260.0060.05112.34
5.4.250.0030.06018.80
5.4.240.0070.05318.89
5.4.230.0000.06018.95
5.4.220.0130.05718.66
5.4.210.0100.04718.57
5.4.200.0000.05718.98
5.4.190.0070.05318.75
5.4.180.0030.05318.88
5.4.170.0070.05318.80
5.4.160.0070.05718.88
5.4.150.0000.06018.99
5.4.140.0100.04716.27
5.4.130.0030.05016.25
5.4.120.0030.07016.50
5.4.110.0170.05316.36
5.4.100.0100.05016.24
5.4.90.0130.04716.39
5.4.80.0130.05716.45
5.4.70.0130.04316.36
5.4.60.0030.06316.14
5.4.50.0130.06016.44
5.4.40.0100.06316.48
5.4.30.0070.06716.25
5.4.20.0030.05316.17
5.4.10.0100.05016.14
5.4.00.0170.04015.84
5.3.290.0060.04512.80
5.3.280.0130.07014.60
5.3.270.0030.05714.48
5.3.260.0130.05014.59
5.3.250.0000.05714.75
5.3.240.0170.04014.48
5.3.230.0070.05014.43
5.3.220.0030.05314.40
5.3.210.0100.07314.48
5.3.200.0070.05014.26
5.3.190.0130.05014.65
5.3.180.0130.04314.65
5.3.170.0070.06014.55
5.3.160.0100.06714.71
5.3.150.0100.05314.60
5.3.140.0100.06714.42
5.3.130.0070.05014.55
5.3.120.0070.05314.55
5.3.110.0030.05314.41
5.3.100.0030.05313.80
5.3.90.0030.05013.88
5.3.80.0030.05713.90
5.3.70.0070.06713.95
5.3.60.0170.04313.94
5.3.50.0030.05014.11
5.3.40.0030.07313.98
5.3.30.0000.06013.92
5.3.20.0070.05013.55
5.3.10.0100.04313.56
5.3.00.0030.05013.57
5.2.170.0130.03711.16
5.2.160.0070.03711.03
5.2.150.0070.04011.14
5.2.140.0030.04310.97
5.2.130.0070.04711.00
5.2.120.0070.03711.01
5.2.110.0130.04710.99
5.2.100.0030.04011.24
5.2.90.0030.04011.02
5.2.80.0000.04711.20
5.2.70.0030.04011.08
5.2.60.0000.04311.06
5.2.50.0100.03710.95
5.2.40.0100.03310.77
5.2.30.0070.04010.80
5.2.20.0100.03310.96
5.2.10.0070.03710.85
5.2.00.0030.04010.79
5.1.60.0100.02710.03
5.1.50.0070.04010.18
5.1.40.0030.0379.93
5.1.30.0000.03710.41
5.1.20.0100.04010.43
5.1.10.0070.0339.91
5.1.00.0100.0309.97
5.0.50.0000.0308.30
5.0.40.0000.0308.43
5.0.30.0030.0478.27
5.0.20.0000.0308.27
5.0.10.0000.0308.14
5.0.00.0030.0408.34
4.4.90.0100.0136.95
4.4.80.0030.0276.95
4.4.70.0000.0236.95
4.4.60.0130.0106.95
4.4.50.0070.0206.95
4.4.40.0100.0276.95
4.4.30.0070.0176.95
4.4.20.0030.0206.95
4.4.10.0000.0236.82
4.4.00.0070.0276.35
4.3.110.0000.0235.91
4.3.100.0000.0235.71
4.3.90.0000.0205.67
4.3.80.0100.0235.75
4.3.70.0070.0175.68
4.3.60.0000.0235.69
4.3.50.0070.0275.68
4.3.40.0000.0335.64
4.3.30.0070.0275.64
4.3.20.0100.0235.64
4.3.10.0030.0205.64
4.3.00.0000.0237.61

preferences:
39.69 ms | 400 KiB | 5 Q