3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("www.example.com", 80); if (!$fp) { echo "Unable to open\n"; } else { fwrite($fp, "GET / HTTP/1.0\r\n\r\n"); stream_set_timeout($fp, 2); $res = fread($fp, 2000); $info = stream_get_meta_data($fp); fclose($fp); if ($info['timed_out']) { echo 'Connection timed out!'; } else { echo $res; } } ?>

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.77
8.3.50.0110.00822.15
8.3.40.0200.00019.14
8.3.30.0110.00419.33
8.3.20.0030.00520.59
8.3.10.0080.00022.29
8.3.00.0080.00022.63
8.2.180.0130.00316.63
8.2.170.0030.01322.96
8.2.160.0070.00721.02
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00319.74
8.2.110.0000.00920.54
8.2.100.0040.00818.16
8.2.90.0040.00419.07
8.2.80.0050.00318.05
8.2.70.0030.01017.75
8.2.60.0000.00818.05
8.2.50.0050.00318.07
8.2.40.0080.00018.03
8.2.30.0000.00718.19
8.2.20.0030.00617.85
8.2.10.0030.00519.57
8.2.00.0020.00517.93
8.1.280.0040.01825.92
8.1.270.0080.00022.36
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0030.00724.12
8.1.230.0080.00421.01
8.1.220.0000.00917.77
8.1.210.0040.00418.77
8.1.200.0090.00017.60
8.1.190.0000.00817.80
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0020.00522.32
8.1.150.0060.00318.83
8.1.140.0030.00617.58
8.1.130.0030.00318.09
8.1.120.0000.00717.60
8.1.110.0080.00017.58
8.1.100.0000.00717.58
8.1.90.0030.00517.53
8.1.80.0050.00317.64
8.1.70.0000.00817.56
8.1.60.0090.00017.61
8.1.50.0040.00417.63
8.1.40.0040.00417.61
8.1.30.0040.00417.68
8.1.20.0050.00317.89
8.1.10.0020.00517.62
8.1.00.0080.00017.61
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.69
8.0.270.0040.00417.38
8.0.260.0030.00317.12
8.0.250.0000.00817.10
8.0.240.0000.00717.10
8.0.230.0040.00417.18
8.0.220.0020.00517.09
8.0.210.0000.00717.05
8.0.200.0030.00317.25
8.0.190.0040.00417.11
8.0.180.0000.00817.13
8.0.170.0040.00417.20
8.0.160.0060.00317.10
8.0.150.0040.00417.02
8.0.140.0070.00017.07
8.0.130.0060.00013.74
8.0.120.0040.00417.16
8.0.110.0000.00817.22
8.0.100.0080.00017.11
8.0.90.0040.00417.13
8.0.80.0040.01417.18
8.0.70.0030.00617.09
8.0.60.0040.00417.23
8.0.50.0000.00817.10
8.0.30.0080.01317.30
8.0.20.0130.00817.40
8.0.10.0040.00417.29
8.0.00.0220.01916.96
7.4.330.0020.00215.34
7.4.320.0000.00616.75
7.4.300.0000.00616.71
7.4.290.0070.00016.66
7.4.280.0070.00016.62
7.4.270.0070.00016.80
7.4.260.0000.01016.68
7.4.250.0080.00016.69
7.4.240.0060.00216.74
7.4.230.0040.00416.73
7.4.220.0160.00316.86
7.4.210.0130.00416.85
7.4.200.0070.00016.82
7.4.190.0070.00016.96
7.4.160.0100.00716.81
7.4.150.0090.00917.40
7.4.140.0200.00817.86
7.4.130.0110.00816.80
7.4.120.0110.00616.75
7.4.110.0000.01816.70
7.4.100.0210.00416.72
7.4.90.0030.01516.73
7.4.80.0180.01019.39
7.4.70.0110.01116.84
7.4.60.0120.00816.73
7.4.50.0040.00416.83
7.4.40.0000.01722.77
7.4.30.0030.01316.68
7.4.00.0070.00715.00
7.3.330.0050.00013.46
7.3.320.0000.00613.52
7.3.310.0060.00316.43
7.3.300.0000.00716.48
7.3.290.0090.00616.43
7.3.280.0080.01016.49
7.3.270.0070.01117.40
7.3.260.0160.01316.57
7.3.250.0140.00816.56
7.3.240.0060.01416.79
7.3.230.0120.00616.63
7.3.210.0040.01416.64
7.3.200.0090.01519.39
7.3.190.0120.00816.63
7.3.180.0070.01016.61
7.3.170.0110.00716.44
7.3.160.0090.00616.71
7.3.120.0060.01015.08
7.3.00.0070.00716.70
7.2.330.0060.01316.59
7.2.320.0200.00016.50
7.2.310.0030.01516.87
7.2.300.0090.00916.83
7.2.290.0060.01216.71
7.2.130.0060.00917.03
7.2.120.0080.00316.81
7.2.110.0030.01216.75
7.2.100.0000.01416.90
7.2.90.0030.00917.27
7.2.80.0080.00817.13
7.2.70.0130.00016.81
7.2.60.0090.00316.96
7.2.50.0100.00716.96
7.2.40.0070.00417.28
7.2.30.0030.01017.00
7.2.20.0090.00316.67
7.2.10.0080.00817.14
7.2.00.0000.01517.00
7.1.250.0040.01215.88
7.1.240.0070.00416.01
7.1.230.0030.01016.03
7.1.220.0080.00315.85
7.1.210.0040.00715.87
7.1.200.0060.00815.90
7.1.190.0100.00315.85
7.1.180.0070.00715.87
7.1.170.0030.00715.55
7.1.160.0070.00415.75
7.1.150.0090.00415.78
7.1.140.0030.00615.87
7.1.130.0030.01015.80
7.1.120.0070.00715.73
7.1.110.0110.00415.84
7.1.100.0030.00915.54
7.1.90.0030.01015.88
7.1.80.0140.00015.69
7.1.70.0080.00516.63
7.1.60.0100.00817.90
7.1.50.0100.00616.54
7.1.40.0030.01016.04
7.1.30.0110.00015.98
7.1.20.0060.00915.98
7.1.10.0080.00415.65
7.1.00.0030.04019.29
7.0.330.0040.00815.41
7.0.320.0000.01415.43
7.0.310.0140.00015.16
7.0.300.0040.00815.55
7.0.290.0070.00715.40
7.0.280.0050.00515.40
7.0.270.0000.01015.43
7.0.260.0060.00315.14
7.0.250.0080.00815.63
7.0.240.0030.00515.55
7.0.230.0030.01015.33
7.0.220.0030.01015.71
7.0.210.0050.00515.59
7.0.200.0040.00616.14
7.0.190.0040.00815.49
7.0.180.0040.01115.26
7.0.170.0070.00315.31
7.0.160.0120.00315.47
7.0.150.0000.01415.36
7.0.140.0020.04019.01
7.0.130.0080.00415.41
7.0.120.0030.01015.48
7.0.110.0000.01215.24
7.0.100.0070.00315.05
7.0.90.0030.00715.50
7.0.80.0000.01415.19
7.0.70.0000.01415.24
7.0.60.0070.04417.88
7.0.50.0030.04816.92
7.0.40.0050.02917.03
7.0.30.0170.04117.10
7.0.20.0120.03217.10
7.0.10.0170.02516.98
7.0.00.0040.02717.07
5.6.380.0040.00714.51
5.6.370.0060.00914.84
5.6.360.0000.01714.72
5.6.350.0070.00714.72
5.6.340.0040.00714.66
5.6.330.0030.00614.39
5.6.320.0080.00414.54
5.6.310.0070.00414.30
5.6.300.0030.00714.27
5.6.290.0000.01014.61
5.6.280.0050.05017.98
5.6.270.0060.00914.45
5.6.260.0030.00914.25
5.6.250.0090.00314.30
5.6.240.0030.01314.50
5.6.230.0030.01014.33
5.6.220.0030.00714.63
5.6.210.0140.03117.56
5.6.200.0100.04316.42
5.6.190.0080.04417.60
5.6.180.2130.02217.75
5.6.170.0120.02617.65
5.6.160.0050.04917.63
5.6.150.0080.03516.33
5.6.140.0100.02016.47
5.6.130.0030.04616.41
5.6.120.0070.02217.84
5.6.110.0080.04718.01
5.6.100.0020.02517.92
5.6.90.0030.02517.78
5.6.80.0050.03817.63
5.6.70.0170.04217.56
5.6.60.0000.01514.50
5.6.50.0070.00314.26
5.6.40.0030.00614.33
5.6.30.0000.01314.27
5.6.20.0000.01214.60
5.6.10.0030.01014.47
5.6.00.0030.01014.09
5.5.380.0000.01311.20
5.5.370.0070.00411.18
5.5.360.0030.00311.10
5.5.350.0070.04016.07
5.5.340.0050.02114.50
5.5.330.0090.02516.07
5.5.320.0150.02515.90
5.5.310.0130.04315.92
5.5.300.0100.02314.64
5.5.290.0070.03314.66
5.5.280.0060.04316.19
5.5.270.0030.03916.01
5.5.260.0080.03816.14
5.5.250.0030.02616.01
5.5.240.0060.04016.04
5.5.230.0060.00011.29
5.5.220.0030.00311.28
5.5.210.0070.00011.11
5.5.200.0030.00611.03
5.5.190.0030.00611.35
5.5.180.0060.00011.26
5.5.170.0030.00611.12
5.5.160.0040.00411.38
5.5.150.0050.00311.16
5.5.140.0030.00311.44
5.5.130.0070.00011.13
5.5.120.0060.00610.84
5.5.110.0060.00311.13
5.5.100.0080.00311.07
5.5.90.0000.00711.15
5.5.80.0030.00511.34
5.5.70.0030.00511.38
5.5.60.0060.00611.42
5.5.50.0090.00011.29
5.5.40.0070.00011.34
5.5.30.0060.00610.85
5.5.20.0040.00411.16
5.5.10.0000.00711.33
5.5.00.0030.00611.38
5.4.450.0330.02215.43
5.4.440.0330.02415.21
5.4.430.0690.00015.45
5.4.420.0580.00115.44
5.4.410.0080.02815.32
5.4.400.0070.02814.90
5.4.390.0150.03214.87
5.4.380.0150.02815.01
5.4.370.0160.02314.83
5.4.360.0080.02915.15
5.4.350.0100.02915.08
5.4.340.0100.02915.13
5.4.330.0030.00611.22
5.4.320.0050.02111.92
5.4.310.0060.02011.78
5.4.300.0070.02011.93
5.4.290.0020.02411.82
5.4.280.0070.02211.70
5.4.270.0070.02111.81
5.4.260.0070.02011.80
5.4.250.0040.02311.90
5.4.240.0060.02011.86
5.4.230.0080.02011.80
5.4.220.0050.02111.89
5.4.210.0040.02211.86
5.4.200.0070.02011.75
5.4.190.0050.02111.85
5.4.180.0060.02111.81
5.4.170.0040.02311.80
5.4.160.0060.01911.67
5.4.150.0040.02211.81
5.4.140.0070.02011.69
5.4.130.0030.02411.74
5.4.120.0060.01911.52
5.4.110.0040.02211.60
5.4.100.0030.02111.46
5.4.90.0100.04311.68
5.4.80.0070.02011.59
5.4.70.0060.02411.53
5.4.60.0070.03511.73
5.4.50.0060.02911.68
5.4.40.0070.02611.67
5.4.30.0090.02611.70
5.4.20.0110.03111.69
5.4.10.0040.02411.74
5.4.00.0070.02811.43
5.3.290.0070.02211.73
5.3.280.0040.02911.69
5.3.270.0040.03211.77
5.3.260.0090.02511.60
5.3.250.0050.02411.74
5.3.240.0050.02011.71
5.3.230.0050.02111.71
5.3.220.0080.02511.66
5.3.210.0070.03011.65
5.3.200.0090.02511.65
5.3.190.0060.02711.57
5.3.180.0050.02911.69
5.3.170.0110.02311.70
5.3.160.0070.03211.73
5.3.150.0050.02911.68
5.3.140.0080.02511.66
5.3.130.0050.03211.55
5.3.120.0090.02511.69
5.3.110.0090.04111.65
5.3.100.0100.03611.46
5.3.90.0060.02811.38
5.3.80.0080.01911.31
5.3.70.0020.02411.34
5.3.60.0070.01811.25
5.3.50.0130.03211.28
5.3.40.0080.02511.22
5.3.30.0070.02111.34
5.3.20.0040.03211.20
5.3.10.0040.02711.05
5.3.00.0060.02411.08
5.2.170.0080.0139.63
5.2.160.0020.0189.63
5.2.150.0060.0209.63
5.2.140.0050.0199.63
5.2.130.0070.0219.61
5.2.120.0070.0209.61
5.2.110.0050.0209.62
5.2.100.0050.0149.61
5.2.90.0060.0179.61
5.2.80.0010.0219.61
5.2.70.0040.0189.61
5.2.60.0030.0209.59
5.2.50.0040.0189.57
5.2.40.0060.0149.56
5.2.30.0050.0169.55
5.2.20.0040.0179.54
5.2.10.0050.0169.49
5.2.00.0070.0159.42
5.1.60.0030.0159.06
5.1.50.0030.0159.07
5.1.40.0030.0159.06
5.1.30.0050.0159.23
5.1.20.0090.0129.24
5.1.10.0020.0169.10
5.1.00.0060.0139.10
5.0.50.0050.0108.34
5.0.40.0030.0128.27
5.0.30.0050.0178.18
5.0.20.0020.0138.15
5.0.10.0080.0098.14
5.0.00.0020.0178.13
4.4.90.0010.0117.36
4.4.80.0030.0107.35
4.4.70.0030.0097.35
4.4.60.0020.0107.35
4.4.50.0030.0077.36
4.4.40.0010.0177.34
4.4.30.0010.0107.35
4.4.20.0030.0097.39
4.4.10.0010.0127.40
4.4.00.0020.0147.35
4.3.110.0040.0077.31
4.3.100.0030.0107.31
4.3.90.0010.0117.29
4.3.80.0020.0157.28
4.3.70.0010.0127.29
4.3.60.0040.0077.29
4.3.50.0030.0107.29
4.3.40.0040.0137.27
4.3.30.0030.0106.67
4.3.20.0010.0116.66
4.3.10.0020.0126.57
4.3.00.0130.01111.61

preferences:
45.94 ms | 401 KiB | 5 Q