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

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.0060.01218.58
8.3.50.0140.00721.27
8.3.40.0140.00018.97
8.3.30.0070.00719.08
8.3.20.0040.00420.32
8.3.10.0050.00322.04
8.3.00.0000.00822.64
8.2.180.0170.00318.26
8.2.170.0090.00622.96
8.2.160.0030.01019.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0170.00026.16
8.2.120.0080.00019.69
8.2.110.0030.00619.57
8.2.100.0090.00317.97
8.2.90.0050.00319.22
8.2.80.0030.00619.57
8.2.70.0050.00317.63
8.2.60.0030.00618.05
8.2.50.0040.00418.10
8.2.40.0040.00418.41
8.2.30.0000.00718.12
8.2.20.0070.00017.67
8.2.10.0000.00817.87
8.2.00.0030.00617.74
8.1.280.0150.00325.92
8.1.270.0090.00020.55
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.00922.78
8.1.230.0080.00317.82
8.1.220.0030.00517.91
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0040.00417.23
8.1.180.0000.00918.10
8.1.170.0060.00318.71
8.1.160.0040.00422.18
8.1.150.0070.00018.64
8.1.140.0000.00717.46
8.1.130.0000.00717.90
8.1.120.0040.00417.57
8.1.110.0050.00317.49
8.1.100.0050.00217.61
8.1.90.0000.00717.43
8.1.80.0000.00817.61
8.1.70.0070.00017.49
8.1.60.0000.00817.62
8.1.50.0000.00717.56
8.1.40.0050.00317.53
8.1.30.0000.00717.64
8.1.20.0030.00617.71
8.1.10.0040.00417.53
8.1.00.0000.00817.61
8.0.300.0000.00818.77
8.0.290.0070.00016.88
8.0.280.0000.00718.57
8.0.270.0030.00517.30
8.0.260.0000.00717.06
8.0.250.0040.00417.19
8.0.240.0050.00317.07
8.0.230.0000.00717.08
8.0.220.0000.00616.93
8.0.210.0040.00217.15
8.0.200.0060.00017.07
8.0.190.0040.00417.04
8.0.180.0060.00316.93
8.0.170.0040.00417.00
8.0.160.0030.00616.96
8.0.150.0040.00416.94
8.0.140.0000.00717.03
8.0.130.0030.00313.48
8.0.120.0040.00417.08
8.0.110.0040.00417.11
8.0.100.0070.00016.96
8.0.90.0040.00416.91
8.0.80.0060.00917.07
8.0.70.0040.00417.06
8.0.60.0050.00216.94
8.0.50.0000.00816.91
8.0.30.0110.00817.17
8.0.20.0150.00517.40
8.0.10.0040.00417.04
8.0.00.0100.00816.82
7.4.330.0000.00515.00
7.4.320.0000.00616.65
7.4.300.0000.00616.57
7.4.290.0030.00316.56
7.4.280.0000.00616.63
7.4.270.0000.00716.54
7.4.260.0030.00316.59
7.4.250.0040.00416.53
7.4.240.0020.00516.69
7.4.230.0000.00716.65
7.4.220.0040.01316.69
7.4.210.0090.00516.64
7.4.200.0040.00416.66
7.4.190.0040.00416.60
7.4.160.0170.00016.67
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0120.00516.58
7.4.120.0110.00816.65
7.4.110.0070.01016.27
7.4.100.0190.00316.37
7.4.90.0100.00716.59
7.4.80.0160.00419.39
7.4.70.0080.01216.29
7.4.60.0100.00616.46
7.4.50.0040.00416.52
7.4.40.0110.00322.77
7.4.30.0130.00316.60
7.4.00.0070.00714.94
7.3.330.0000.00513.18
7.3.320.0000.00513.36
7.3.310.0000.00716.43
7.3.300.0000.00616.44
7.3.290.0060.00816.34
7.3.280.0100.00716.38
7.3.270.0130.00417.40
7.3.260.0090.00916.66
7.3.250.0130.00716.50
7.3.240.0070.01316.47
7.3.230.0140.00416.43
7.3.210.0100.00716.54
7.3.200.0090.01219.39
7.3.190.0140.00716.43
7.3.180.0040.01116.45
7.3.170.0120.00416.61
7.3.160.0080.00816.34
7.3.120.0030.01315.00
7.3.10.0100.00316.54
7.3.00.0070.00716.91
7.2.330.0120.00916.39
7.2.320.0190.00316.72
7.2.310.0100.00716.46
7.2.300.0100.01016.64
7.2.290.0100.00616.52
7.2.130.0120.00316.96
7.2.120.0060.00917.03
7.2.110.0090.00317.04
7.2.100.0060.00616.53
7.2.90.0030.01117.00
7.2.80.0030.01017.15
7.2.70.0080.00316.96
7.2.60.0090.00717.06
7.2.50.0030.00616.93
7.2.40.0000.01016.98
7.2.30.0100.00316.92
7.2.20.0000.01016.92
7.2.10.0000.01416.77
7.2.00.0030.01218.42
7.1.250.0070.00315.80
7.1.200.0090.00615.41
7.1.100.0000.01118.19
7.1.70.0070.00317.16
7.1.60.0100.01419.82
7.1.50.0120.00816.96
7.1.00.0030.03322.66
7.0.200.0070.00016.84
7.0.140.0030.07322.21
7.0.100.0030.04319.96
7.0.90.0030.04019.98
7.0.80.0030.05719.83
7.0.70.0070.03720.02
7.0.60.0100.07719.93
7.0.50.0100.07720.26
7.0.40.0130.08020.09
7.0.30.0130.08320.07
7.0.20.0030.09020.27
7.0.10.0200.07720.17
7.0.00.0130.07720.22
5.6.280.0000.07720.93
5.6.250.0070.05320.65
5.6.240.0070.03720.70
5.6.230.0070.04320.60
5.6.220.0170.07020.71
5.6.210.0070.08020.84
5.6.200.0130.06721.13
5.6.190.0170.06721.23
5.6.180.0100.07321.00
5.6.170.0070.07721.18
5.6.160.0070.07721.11
5.6.150.0070.08321.09
5.6.140.0070.08021.11
5.6.130.0200.06721.08
5.6.120.0130.05721.16
5.6.110.0030.08720.97
5.6.100.0000.08721.10
5.6.90.0100.08021.10
5.6.80.0030.07720.52
5.6.70.0070.08320.46
5.6.60.0200.06720.34
5.6.50.0070.08020.38
5.6.40.0070.07720.46
5.6.30.0130.07020.50
5.6.20.0030.08720.32
5.6.10.0130.07320.34
5.6.00.0000.08320.46
5.5.380.0000.04320.54
5.5.370.0070.07720.43
5.5.360.0100.07020.46
5.5.350.0100.07720.36
5.5.340.0200.07320.87
5.5.330.0030.08720.96
5.5.320.0030.08020.72
5.5.310.0200.06720.81
5.5.300.0070.08720.94
5.5.290.0100.06320.84
5.5.280.0200.06720.68
5.5.270.0100.08020.87
5.5.260.0130.07720.66
5.5.250.0170.07020.83
5.5.240.0070.07720.22
5.5.230.0030.05020.05
5.5.220.0100.07720.27
5.5.210.0000.05020.36
5.5.200.0130.07020.28
5.5.190.0200.06720.12
5.5.180.0030.08320.33
5.5.160.0100.07320.27
5.5.150.0000.08320.24
5.5.140.0070.08020.28
5.5.130.0170.06020.11
5.5.120.0100.07320.27
5.5.110.0100.08020.32
5.5.100.0130.07720.08
5.5.90.0070.07720.16
5.5.80.0200.05720.13
5.5.70.0030.04020.10
5.5.60.0070.07720.09
5.5.50.0130.06720.09
5.5.40.0070.06320.12
5.5.30.0200.06320.09
5.5.20.0100.07720.14
5.5.10.0100.04320.09
5.5.00.0030.08020.13
5.4.450.0000.08719.42
5.4.440.0130.07319.60
5.4.430.0070.08319.42
5.4.420.0100.06719.26
5.4.410.0130.06019.30
5.4.400.0130.07719.10
5.4.390.0030.07719.05
5.4.380.0070.07719.20
5.4.370.0030.08319.22
5.4.360.0070.07719.03
5.4.350.0100.05019.17
5.4.340.0100.07019.07
5.4.320.0100.07019.10
5.4.310.0130.06719.17
5.4.300.0030.07719.11
5.4.290.0070.07319.22
5.4.280.0070.07719.04
5.4.270.0030.07719.15
5.4.260.0030.08319.22
5.4.250.0070.07718.95
5.4.240.0100.07719.06
5.4.230.0070.04319.07
5.4.220.0130.06718.93
5.4.210.0170.06318.95
5.4.200.0170.06718.93
5.4.190.0000.08019.28
5.4.180.0100.07019.23
5.4.170.0130.07019.26
5.4.160.0130.06319.05
5.4.150.0070.07019.13
5.4.140.0170.06016.19
5.4.130.0000.05716.18
5.4.120.0000.07716.32
5.4.110.0030.05316.32
5.4.100.0100.05016.24
5.4.90.0070.07016.31
5.4.80.0100.05716.32
5.4.70.0070.07316.47
5.4.60.0100.06716.49
5.4.50.0100.05716.48
5.4.40.0100.07016.50
5.4.30.0070.07316.48
5.4.20.0030.07716.38
5.4.10.0130.07016.44
5.4.00.0070.06715.87
5.3.290.0070.07714.66
5.3.280.0000.08314.57
5.3.270.0030.08314.66
5.3.260.0070.07714.57
5.3.250.0130.06014.52
5.3.240.0000.07714.52
5.3.230.0030.07314.54
5.3.220.0000.07714.57
5.3.210.0170.06014.47
5.3.200.0030.07314.48
5.3.190.0070.07314.63
5.3.180.0000.07714.47
5.3.170.0130.06714.50
5.3.160.0070.07714.54
5.3.150.0070.07714.62
5.3.140.0030.07714.46
5.3.130.0070.05714.52
5.3.120.0070.07714.46
5.3.110.0070.08014.54
5.3.100.0000.05014.01
5.3.90.0030.07313.98
5.3.80.0170.06014.00
5.3.70.0100.07013.96
5.3.60.0030.05314.07
5.3.50.0030.07313.86
5.3.40.0100.07313.96
5.3.30.0100.06713.87
5.3.20.0070.07313.63
5.3.10.0100.07313.58
5.3.00.0030.07013.69
5.2.170.0030.06711.49
5.2.160.0070.05711.49
5.2.150.0000.03711.49
5.2.140.0000.06011.49
5.2.130.0030.06311.49
5.2.120.0070.06011.49
5.2.110.0070.06011.49
5.2.100.0030.06011.49
5.2.90.0070.05711.49
5.2.80.0070.06311.49
5.2.70.0070.06011.49
5.2.60.0070.05711.49
5.2.50.0070.05711.49
5.2.40.0070.06011.49
5.2.30.0070.06011.49
5.2.20.0070.05011.49
5.2.10.0000.05711.49
5.2.00.0200.04711.49
5.1.60.0070.05011.49
5.1.50.0030.05311.49
5.1.40.0100.04711.49
5.1.30.0070.05311.49
5.1.20.0000.06311.49
5.1.10.0070.04011.49
5.1.00.0000.05711.49
5.0.50.0030.04711.49
5.0.40.0030.04311.49
5.0.30.0030.06711.49
5.0.20.0130.03011.49
5.0.10.0100.03711.49
5.0.00.0030.05311.49
4.4.90.0030.03711.49
4.4.80.0030.03711.49
4.4.70.0030.03311.49
4.4.60.0030.03311.49
4.4.50.0000.03711.49
4.4.40.0070.05011.49
4.4.30.0100.03011.49
4.4.20.0000.04011.49
4.4.10.0070.03311.49
4.4.00.0000.05011.49
4.3.110.0030.03711.49
4.3.100.0100.01711.49
4.3.90.0030.03011.49
4.3.80.0070.05011.49
4.3.70.0070.02711.49
4.3.60.0030.02711.49
4.3.50.0030.03311.49
4.3.40.0100.04711.49
4.3.30.0000.02711.49
4.3.20.0100.02711.49
4.3.10.0000.04011.49
4.3.00.0070.02711.49

preferences:
45 ms | 401 KiB | 5 Q