3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("www.google.com", 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.0130.00318.80
8.3.60.0140.00416.88
8.3.50.0130.00521.15
8.3.40.0130.00919.23
8.3.30.0040.01119.52
8.3.20.0080.00020.59
8.3.10.0080.00022.51
8.3.00.0080.00022.83
8.2.180.0090.00616.75
8.2.170.0100.00722.96
8.2.160.0130.01019.46
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00919.67
8.2.110.0050.00522.41
8.2.100.0070.00319.52
8.2.90.0000.00819.38
8.2.80.0000.00819.46
8.2.70.0030.00617.73
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0060.00318.41
8.2.30.0050.00318.27
8.2.20.0080.00017.78
8.2.10.0040.00417.82
8.2.00.0100.00017.90
8.1.280.0110.00425.92
8.1.270.0000.00818.59
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00424.09
8.1.230.0040.00819.33
8.1.220.0060.00317.79
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0040.00417.64
8.1.180.0000.00918.88
8.1.170.0050.00318.82
8.1.160.0040.00422.39
8.1.150.0000.00718.85
8.1.140.0040.00417.73
8.1.130.0040.00418.10
8.1.120.0050.00217.57
8.1.110.0050.00217.64
8.1.100.0070.00017.56
8.1.90.0080.00017.59
8.1.80.0000.00817.58
8.1.70.0030.00317.66
8.1.60.0060.00317.72
8.1.50.0040.00417.63
8.1.40.0000.00817.63
8.1.30.0060.00317.72
8.1.20.0050.00317.89
8.1.10.0000.00817.62
8.1.00.0000.00817.64
8.0.300.0000.00818.77
8.0.290.0040.00417.43
8.0.280.0030.00318.65
8.0.270.0050.00217.34
8.0.260.0040.00417.09
8.0.250.0080.00017.23
8.0.240.0000.00917.16
8.0.230.0030.00317.12
8.0.220.0080.00017.05
8.0.210.0070.00017.00
8.0.200.0000.00817.17
8.0.190.0030.00717.12
8.0.180.0000.00717.21
8.0.170.0060.00317.26
8.0.160.0030.00517.18
8.0.150.0070.00016.95
8.0.140.0040.00417.03
8.0.130.0000.00613.58
8.0.120.0000.00817.30
8.0.110.0030.00617.15
8.0.100.0060.00317.30
8.0.90.0080.00017.18
8.0.80.0070.01617.25
8.0.70.0050.00217.13
8.0.60.0000.00817.20
8.0.50.0000.00717.13
8.0.30.0110.01217.54
8.0.20.0120.00817.49
8.0.10.0030.00617.33
8.0.00.0120.00916.97
7.4.330.0020.00215.00
7.4.320.0030.00316.71
7.4.300.0070.00016.69
7.4.290.0070.00316.71
7.4.280.0070.00016.59
7.4.270.0000.00816.55
7.4.260.0050.00216.69
7.4.250.0080.00016.84
7.4.240.0040.00416.85
7.4.230.0030.00316.66
7.4.220.0060.01316.83
7.4.210.0080.00716.90
7.4.200.0030.00516.84
7.4.190.0070.00016.88
7.4.160.0040.01416.59
7.4.150.0150.00417.40
7.4.140.0130.01017.86
7.4.130.0100.00816.80
7.4.120.0070.01216.74
7.4.110.0120.00616.75
7.4.100.0110.00716.69
7.4.90.0180.00016.72
7.4.80.0100.01019.39
7.4.70.0090.00916.50
7.4.60.0060.01216.58
7.4.50.0080.00016.68
7.4.40.0080.00622.77
7.4.30.0200.00316.73
7.4.00.0040.00715.18
7.3.330.0030.00313.38
7.3.320.0000.00613.55
7.3.310.0050.00316.43
7.3.300.0030.00316.56
7.3.290.0100.00716.53
7.3.280.0110.00716.57
7.3.270.0060.01117.40
7.3.260.0130.00616.74
7.3.250.0100.01116.67
7.3.240.0120.00616.72
7.3.230.0170.00716.68
7.3.210.0170.00316.91
7.3.200.0090.01319.39
7.3.190.0110.00816.74
7.3.180.0100.01016.66
7.3.170.0170.00716.86
7.3.160.0160.00516.71
7.3.120.0140.00315.07
7.2.330.0110.01416.77
7.2.320.0060.01116.57
7.2.310.0140.00316.79
7.2.300.0150.00616.87
7.2.290.0100.00716.84
7.2.60.0060.00917.02
7.2.00.0090.00319.63
7.1.200.0120.00315.88
7.1.100.0060.00618.16
7.1.70.0000.01117.30
7.1.60.0000.01519.82
7.1.50.0040.02117.41
7.1.00.0030.03722.69
7.0.200.0070.00717.05
7.0.140.0000.07722.34
7.0.60.0000.07320.34
7.0.50.0130.05318.10
7.0.40.0100.08720.54
7.0.30.0300.03720.49
7.0.20.0370.07320.47
7.0.10.0170.07720.49
7.0.00.0100.08020.55
5.6.280.0100.07021.21
5.6.210.0100.05720.82
5.6.200.0070.05718.66
5.6.190.0000.09020.94
5.6.180.3570.04721.07
5.6.170.0270.06720.80
5.6.160.0200.06720.85
5.6.150.0030.04018.46
5.6.140.0100.08018.57
5.6.130.0070.08018.41
5.6.120.0100.07721.28
5.6.110.0130.08321.30
5.6.100.0130.06021.41
5.6.90.0030.07721.23
5.6.80.0030.08720.64
5.6.70.0200.08020.71
5.5.350.0100.08720.68
5.5.340.0200.03018.36
5.5.330.0100.05720.92
5.5.320.0130.04320.65
5.5.310.0370.05720.58
5.5.300.0030.09318.32
5.5.290.0000.06718.31
5.5.280.0000.04721.26
5.5.270.0100.05320.99
5.5.260.0030.04321.02
5.5.250.0130.07320.78
5.5.240.0070.04720.63
5.4.450.0370.05319.71
5.4.440.0870.04319.76
5.4.430.0670.07019.78
5.4.420.0970.05019.63
5.4.410.0800.04719.49
5.4.400.0170.06019.04
5.4.390.0170.06718.73
5.4.380.0230.05318.98
5.4.370.0070.05718.87
5.4.360.0170.05018.68
5.4.350.0070.04612.19
5.4.340.0080.04912.18
5.4.320.0050.03712.68
5.4.310.0060.04712.67
5.4.300.0080.04612.68
5.4.290.0080.04512.67
5.4.280.0080.04612.57
5.4.270.0070.04012.57
5.4.260.0070.03512.57
5.4.250.0030.06019.12
5.4.240.0130.07018.97
5.4.230.0070.05019.14
5.4.220.0030.05719.04
5.4.210.0000.05718.77
5.4.200.0070.05019.20
5.4.190.0130.06019.13
5.4.180.0100.06719.11
5.4.170.0170.04019.02
5.4.160.0070.05019.13
5.4.150.0070.05318.96
5.4.140.0030.05316.70
5.4.130.0000.05316.70
5.4.120.0130.04716.62
5.4.110.0100.04716.81
5.4.100.0030.05316.72
5.4.90.0000.05316.71
5.4.80.0100.04716.60
5.4.70.0130.04316.65
5.4.60.0170.04016.63
5.4.50.0030.06316.79
5.4.40.0130.04316.69
5.4.30.0100.04316.62
5.4.20.0030.07316.60
5.4.10.0030.05316.68
5.4.00.0130.04316.18
5.3.290.0100.04112.88
5.3.280.0170.06314.86
5.3.270.0130.05014.88
5.3.260.0130.06014.63
5.3.250.0000.05714.69
5.3.240.0070.05314.73
5.3.230.0070.05014.61
5.3.220.0030.05714.89
5.3.210.0070.06314.89
5.3.200.0070.06714.75
5.3.190.0130.04314.76
5.3.180.0100.04314.66
5.3.170.0030.05314.59
5.3.160.0000.05314.68
5.3.150.0130.04314.65
5.3.140.0100.04314.67
5.3.130.0070.05014.56
5.3.120.0070.05014.56
5.3.110.0100.07014.65
5.3.100.0100.04714.15
5.3.90.0030.05314.11
5.3.80.0070.04713.95
5.3.70.0030.05014.11
5.3.60.0030.05014.32
5.3.50.0100.06314.13
5.3.40.0130.04014.12
5.3.30.0100.06313.92
5.3.20.0100.04013.86
5.3.10.0030.07013.72
5.3.00.0070.05013.73
5.2.170.0030.05311.26
5.2.160.0070.03711.33
5.2.150.0070.04011.16
5.2.140.0030.04311.16
5.2.130.0070.03711.16
5.2.120.0130.03011.22
5.2.110.0000.04311.19
5.2.100.0030.04311.22
5.2.90.0100.03311.20
5.2.80.0000.04311.12
5.2.70.0070.03711.12
5.2.60.0030.04311.11
5.2.50.0070.04011.11
5.2.40.0100.03311.09
5.2.30.0070.05311.04
5.2.20.0070.03711.05
5.2.10.0030.04010.96
5.2.00.0030.04010.74
5.1.60.0070.03710.08
5.1.50.0030.03310.09
5.1.40.0100.04310.18
5.1.30.0030.03710.45
5.1.20.0070.03710.36
5.1.10.0100.02710.23
5.1.00.0100.03010.09
5.0.50.0000.0308.62
5.0.40.0130.0238.46
5.0.30.0000.0438.48
5.0.20.0030.0308.47
5.0.10.0000.0308.19
5.0.00.0000.0438.44
4.4.90.0070.0176.99
4.4.80.0070.0176.99
4.4.70.0000.0236.99
4.4.60.0030.0206.99
4.4.50.0000.0236.99
4.4.40.0030.0376.99
4.4.30.0000.0236.99
4.4.20.0070.0176.99
4.4.10.0000.0306.99
4.4.00.0000.0476.99
4.3.110.0000.0336.99
4.3.100.0000.0276.99
4.3.90.0000.0236.99
4.3.80.0000.0506.99
4.3.70.0030.0176.99
4.3.60.0070.0176.99
4.3.50.0000.0236.99
4.3.40.0030.0306.99
4.3.30.0070.0206.99
4.3.20.0000.0336.99
4.3.10.0030.0206.99
4.3.00.0030.0207.60

preferences:
39.06 ms | 401 KiB | 5 Q