3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("173.194.34.49", 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.70.0140.00016.75
8.3.60.0040.01116.50
8.3.50.0080.01217.51
8.3.40.0040.01118.67
8.3.30.0070.00718.81
8.3.20.0050.00318.85
8.3.10.0000.00920.52
8.3.00.0080.00019.38
8.2.180.0140.00717.00
8.2.170.0100.01022.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.01220.95
8.2.110.0050.00519.41
8.2.100.0080.00317.84
8.2.90.0030.00619.30
8.2.80.0000.00919.46
8.2.70.0030.00617.75
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0000.00718.30
8.2.30.0040.00818.18
8.2.20.0000.00717.85
8.2.10.0000.00717.86
8.2.00.0030.00617.74
8.1.280.0120.00325.92
8.1.270.0070.00024.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00422.18
8.1.230.0100.00321.11
8.1.220.0080.00017.77
8.1.210.0040.00418.98
8.1.200.0040.00417.36
8.1.190.0000.00717.64
8.1.180.0030.00618.10
8.1.170.0040.00419.03
8.1.160.0000.00719.01
8.1.150.0040.00418.77
8.1.140.0050.00317.59
8.1.130.0000.00717.95
8.1.120.0000.00717.53
8.1.110.0030.00617.50
8.1.100.0030.00617.48
8.1.90.0000.00817.59
8.1.80.0030.00517.47
8.1.70.0000.00717.59
8.1.60.0040.00417.64
8.1.50.0050.00317.53
8.1.40.0050.00317.67
8.1.30.0040.00417.65
8.1.20.0000.00817.81
8.1.10.0050.00217.68
8.1.00.0060.00317.54
8.0.300.0050.00319.90
8.0.290.0000.00716.88
8.0.280.0000.00718.49
8.0.270.0030.00317.45
8.0.260.0000.00616.93
8.0.250.0060.00317.21
8.0.240.0040.00417.02
8.0.230.0000.00717.20
8.0.220.0030.00317.16
8.0.210.0070.00017.01
8.0.200.0050.00217.04
8.0.190.0040.00416.96
8.0.180.0040.00417.13
8.0.170.0000.00917.16
8.0.160.0040.00417.08
8.0.150.0080.00017.02
8.0.140.0050.00316.86
8.0.130.0050.00013.59
8.0.120.0040.00416.98
8.0.110.0000.00817.00
8.0.100.0000.00716.93
8.0.90.0000.00716.90
8.0.80.0100.00417.02
8.0.70.0000.00817.07
8.0.60.0050.00217.04
8.0.50.0050.00317.06
8.0.30.0080.01417.14
8.0.20.0120.01117.02
8.0.10.0040.00417.18
8.0.00.0100.01116.84
7.4.330.0030.00313.20
7.4.320.0060.00016.59
7.4.300.0040.00416.67
7.4.290.0000.00716.49
7.4.280.0040.00416.54
7.4.270.0000.00716.55
7.4.260.0030.00313.43
7.4.250.0000.00916.67
7.4.240.0050.00216.65
7.4.230.0030.00316.69
7.4.220.0060.01016.43
7.4.210.0120.00516.58
7.4.200.0040.00416.74
7.4.190.0050.00316.73
7.4.160.0040.01216.48
7.4.150.0110.01216.52
7.4.140.0140.00316.40
7.4.130.0060.01116.55
7.4.120.0130.00716.53
7.4.110.0120.00416.71
7.4.100.0060.01316.53
7.4.90.0110.00616.57
7.4.80.0120.01219.39
7.4.70.0110.00516.53
7.4.60.0000.01816.59
7.4.50.0040.00416.46
7.4.40.0070.01116.43
7.4.30.0110.00716.57
7.4.00.0120.00314.93
7.3.330.0000.00613.29
7.3.320.0050.00013.20
7.3.310.0030.00316.38
7.3.300.0020.00516.43
7.3.290.0140.00716.32
7.3.280.0080.00716.46
7.3.270.0110.00716.47
7.3.260.0110.00616.56
7.3.250.0100.00716.60
7.3.240.0150.00616.55
7.3.230.0100.01016.55
7.3.210.0070.01016.43
7.3.200.0170.00516.48
7.3.190.0030.01616.36
7.3.180.0120.00616.46
7.3.170.0080.00816.41
7.3.160.0030.01516.48
7.3.120.0060.01214.87
7.3.10.0180.00616.59
7.3.00.0160.01216.53
7.2.330.0090.00916.65
7.2.320.0100.01016.41
7.2.310.0190.00016.87
7.2.300.0100.00616.61
7.2.290.0100.00616.70
7.2.130.0090.00916.43
7.2.120.0190.00016.31
7.2.110.0110.00716.74
7.2.100.0080.00816.50
7.2.90.0140.00416.73
7.2.80.0130.00617.04
7.2.70.0120.00416.80
7.2.60.0150.00616.53
7.2.50.0080.01116.38
7.2.40.0200.00916.92
7.2.30.0120.01216.26
7.2.20.0120.01716.75
7.2.10.0170.00416.82
7.2.00.0110.00618.19
7.1.250.0120.00615.44
7.1.200.0070.00715.70
7.1.100.0060.00918.11
7.1.70.0030.00617.06
7.1.60.0100.01419.40
7.1.50.0030.01717.15
7.1.00.0030.07722.59
7.0.200.0100.00016.95
7.0.140.0030.07322.14
7.0.120.0000.07722.05
7.0.60.0100.08019.91
7.0.50.0130.08018.00
7.0.40.0070.06320.36
7.0.30.0300.07020.25
7.0.20.0200.06020.21
7.0.10.0330.07720.23
7.0.00.0100.08320.24
5.6.280.0100.06721.08
5.6.210.0200.07720.66
5.6.200.0030.06018.25
5.6.190.0030.05720.54
5.6.180.0330.07020.68
5.6.170.0270.07320.68
5.6.160.0000.04720.52
5.6.150.0000.04318.18
5.6.140.0100.07718.21
5.6.130.0030.06318.27
5.6.120.0070.07021.17
5.6.110.0100.05721.11
5.6.100.0170.06321.14
5.6.90.0170.06321.22
5.6.80.0100.03720.54
5.6.70.0100.04320.40
5.5.350.0230.07720.47
5.5.340.0070.04718.11
5.5.330.0030.04320.19
5.5.320.0170.04720.53
5.5.310.0330.05020.41
5.5.300.0100.04718.03
5.5.290.0100.08018.01
5.5.280.0000.07320.94
5.5.270.0070.07320.81
5.5.260.0030.04720.82
5.5.250.0030.09320.79
5.5.240.0130.06720.29
5.4.450.0200.07719.47
5.4.440.0170.04019.37
5.4.430.0200.03719.55
5.4.420.0200.03719.60
5.4.410.0170.04319.34
5.4.400.0170.03719.22
5.4.390.0100.04319.01
5.4.380.0200.05019.04
5.4.370.0230.05019.18
5.4.360.0300.06719.19
5.4.350.0300.07319.20
5.4.340.0230.04018.90
5.4.320.0200.04319.23
5.4.310.0170.05719.32
5.4.300.0200.05319.18
5.4.290.0130.08019.15
5.4.280.0130.08019.21
5.4.270.0200.04019.05
5.4.260.0230.07719.05
5.4.250.0200.04019.30
5.4.240.0200.04019.18
5.4.230.0230.05019.19
5.4.220.0230.06319.00
5.4.210.0200.04319.00
5.4.200.0200.03319.18
5.4.190.0270.07019.05
5.4.180.0200.04019.14
5.4.170.0200.03719.18
5.4.160.0230.05718.84
5.4.150.0300.04019.17
5.4.140.0230.03716.56
5.4.130.0130.06016.33
5.4.120.0200.04016.28
5.4.110.0270.03316.51
5.4.100.0130.06316.46
5.4.90.0170.06716.51
5.4.80.0230.06716.46
5.4.70.0170.03316.32
5.4.60.0230.05716.48
5.4.50.0230.05316.33
5.4.40.0270.07016.50
5.4.30.0200.03316.33
5.4.20.0230.05716.47
5.4.10.0230.05716.50
5.4.00.0130.05315.81
5.3.290.0300.05014.77
5.3.280.0170.04014.45
5.3.270.0300.06714.54
5.3.260.0230.05014.63
5.3.250.0370.06314.54
5.3.240.0230.04014.55
5.3.230.0000.04714.57
5.3.220.0070.07314.40
5.3.210.0200.04314.53
5.3.200.0170.04014.49
5.3.190.0300.06314.40
5.3.180.0300.03714.55
5.3.170.0230.07014.54
5.3.160.0330.06714.66
5.3.150.0200.07014.52
5.3.140.0230.04314.45
5.3.130.0270.06314.52
5.3.120.0230.03014.43
5.3.110.0230.08014.47
5.3.100.0270.06313.97
5.3.90.0300.03713.96
5.3.80.0230.05713.88
5.3.70.0200.06013.95
5.3.60.0230.03314.01
5.3.50.0100.04713.93
5.3.40.0330.06314.05
5.3.30.0130.06313.92
5.3.20.0000.04013.67
5.3.10.0030.05313.50
5.3.00.0070.03713.75
5.2.170.0070.03011.25
5.2.160.0030.06311.07
5.2.150.0630.03311.23
5.2.140.0230.02711.11
5.2.130.0130.03010.94
5.2.120.0030.03011.02
5.2.110.0170.04311.10
5.2.100.0170.03711.17
5.2.90.0230.04310.95
5.2.80.0170.03011.14
5.2.70.0170.03711.14
5.2.60.0130.03011.16
5.2.50.0070.04710.99
5.2.40.0030.06010.91
5.2.30.0070.06010.89
5.2.20.0170.05711.04
5.2.10.0130.05710.91
5.2.00.0170.03010.70
5.1.60.0200.0239.93
5.1.50.0030.03010.06
5.1.40.0070.02710.06
5.1.30.0170.02710.35
5.1.20.0170.05010.34
5.1.10.0200.02710.10
5.1.00.0030.03310.10
5.0.50.0100.0478.69
5.0.40.0070.0208.46
5.0.30.0070.0408.09
5.0.20.0070.0438.17
5.0.10.0030.0278.09
5.0.00.0130.0538.14
4.4.90.0070.0277.86
4.4.80.0070.0177.86
4.4.70.0070.0277.86
4.4.60.0070.0207.86
4.4.50.0070.0277.86
4.4.40.0070.0607.86
4.4.30.0130.0207.86
4.4.20.0100.0237.86
4.4.10.0130.0237.86
4.4.00.0070.0307.86
4.3.110.0030.0177.86
4.3.100.0000.0177.86
4.3.90.0070.0237.86
4.3.80.0000.0337.86
4.3.70.0030.0377.86
4.3.60.0000.0407.86
4.3.50.0070.0277.86
4.3.40.0930.0277.86
4.3.30.0500.0207.86
4.3.20.0730.0277.86
4.3.10.0630.0277.86
4.3.00.0570.0237.86

preferences:
43.48 ms | 401 KiB | 5 Q