3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("8.8.8.8", 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.0120.00818.68
8.3.50.0110.00621.99
8.3.40.0060.01218.96
8.3.30.0100.01019.08
8.3.20.0080.00020.50
8.3.10.0050.00322.12
8.3.00.0080.00022.59
8.2.180.0130.01016.48
8.2.170.0070.00722.96
8.2.160.0000.01421.07
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0030.00519.48
8.2.110.0090.00022.39
8.2.100.0080.00417.91
8.2.90.0080.00019.21
8.2.80.0080.00018.05
8.2.70.0040.00417.63
8.2.60.0030.00618.05
8.2.50.0080.00018.07
8.2.40.0000.00718.28
8.2.30.0070.00018.21
8.2.20.0040.00417.81
8.2.10.0050.00319.64
8.2.00.0000.00817.69
8.1.280.0070.00725.92
8.1.270.0070.00024.09
8.1.260.0050.00326.35
8.1.250.0120.00628.09
8.1.240.0100.00023.92
8.1.230.0110.00019.14
8.1.220.0060.00317.91
8.1.210.0000.00818.77
8.1.200.0070.00417.36
8.1.190.0050.00317.65
8.1.180.0090.00318.10
8.1.170.0000.00918.72
8.1.160.0070.00022.21
8.1.150.0050.00218.77
8.1.140.0000.00717.59
8.1.130.0040.00417.86
8.1.120.0000.00717.55
8.1.110.0030.00617.52
8.1.100.0070.00017.63
8.1.90.0000.00717.48
8.1.80.0070.00017.55
8.1.70.0070.00017.54
8.1.60.0000.00817.63
8.1.50.0020.00517.48
8.1.40.0000.00817.66
8.1.30.0040.00417.76
8.1.20.0040.00417.73
8.1.10.0040.00417.52
8.1.00.0050.00217.47
8.0.300.0000.00718.77
8.0.290.0040.00417.30
8.0.280.0040.00418.60
8.0.270.0000.00717.33
8.0.260.0000.00617.01
8.0.250.0030.00317.07
8.0.240.0000.00717.19
8.0.230.0030.00317.24
8.0.220.0000.00717.02
8.0.210.0000.00717.06
8.0.200.0000.00617.08
8.0.190.0040.00417.16
8.0.180.0040.00417.06
8.0.170.0000.00917.13
8.0.160.0000.00816.84
8.0.150.0070.00317.04
8.0.140.0040.00416.95
8.0.130.0030.00313.39
8.0.120.0040.00416.81
8.0.110.0050.00317.00
8.0.100.0050.00216.99
8.0.90.0040.00417.00
8.0.80.0110.01117.01
8.0.70.0030.00517.09
8.0.60.0000.00717.07
8.0.50.0000.00816.90
8.0.30.0090.01217.19
8.0.20.0140.00517.40
8.0.10.0070.00017.12
8.0.00.0150.00316.94
7.4.330.0020.00215.20
7.4.320.0000.00616.69
7.4.300.0000.00716.56
7.4.290.0040.00416.57
7.4.280.0000.00816.48
7.4.270.0100.00016.68
7.4.260.0070.00016.67
7.4.250.0040.00416.52
7.4.240.0020.00516.69
7.4.230.0040.00216.42
7.4.220.0030.01216.52
7.4.210.0080.00716.69
7.4.200.0030.00416.75
7.4.190.0000.00716.71
7.4.160.0090.00616.45
7.4.150.0130.00917.40
7.4.140.0140.00617.86
7.4.130.0080.00816.67
7.4.120.0060.01316.66
7.4.110.0110.00716.67
7.4.100.0150.00316.70
7.4.90.0150.00316.70
7.4.80.0100.00719.39
7.4.70.0030.01316.60
7.4.60.0090.00616.50
7.4.50.0030.00616.52
7.4.40.0070.01122.77
7.4.30.0130.00316.50
7.4.10.0120.00614.94
7.4.00.0070.01115.17
7.3.330.0050.00013.19
7.3.320.0000.00613.38
7.3.310.0000.00616.53
7.3.300.0060.00016.41
7.3.290.0030.01016.41
7.3.280.0100.00816.48
7.3.270.0150.00317.40
7.3.260.0070.01416.41
7.3.250.0120.00516.52
7.3.240.0100.00716.32
7.3.230.0100.00716.60
7.3.210.0090.01516.62
7.3.200.0100.01319.39
7.3.190.0140.00316.40
7.3.180.0070.01016.66
7.3.170.0060.00916.73
7.3.160.0100.00616.50
7.3.130.0030.01415.04
7.3.120.0050.01114.97
7.3.110.0080.00814.80
7.3.100.0030.01015.04
7.3.90.0000.01814.82
7.3.80.0030.01014.94
7.3.70.0030.01014.98
7.3.60.0000.00914.95
7.3.50.0030.01414.76
7.3.40.0080.00814.81
7.3.30.0030.01314.99
7.3.20.0000.01416.84
7.3.10.0000.01316.56
7.3.00.0000.01416.75
7.2.330.0040.01816.48
7.2.320.0190.00616.61
7.2.310.0030.01416.55
7.2.300.0120.00616.65
7.2.290.0140.00616.40
7.2.260.0120.00014.66
7.2.250.0030.01514.79
7.2.240.0060.00815.16
7.2.230.0000.01414.96
7.2.220.0000.01815.26
7.2.210.0060.00915.14
7.2.200.0090.00615.12
7.2.190.0040.00414.77
7.2.180.0090.00914.90
7.2.170.0040.01115.08
7.2.160.0090.00315.21
7.2.150.0040.01217.22
7.2.140.0000.01016.97
7.2.130.0040.01216.97
7.2.120.0030.01016.65
7.2.110.0060.00916.69
7.2.100.0060.00916.79
7.2.90.0100.00317.08
7.2.80.0040.01116.98
7.2.70.0110.00317.11
7.2.60.0000.01417.07
7.2.50.0040.00417.01
7.2.40.0000.01516.65
7.2.30.0000.01117.09
7.2.20.0070.00316.64
7.2.10.0070.00716.72
7.2.00.0060.01018.22
7.1.330.0030.01015.74
7.1.320.0000.01715.57
7.1.310.0030.01015.71
7.1.300.0060.00615.91
7.1.290.0080.00815.52
7.1.280.0060.01015.86
7.1.270.0070.00715.88
7.1.260.0040.01115.63
7.1.250.0080.00015.96
7.1.240.0070.00715.61
7.1.230.0030.01315.62
7.1.220.0090.00015.78
7.1.210.0040.00815.96
7.1.200.0060.01016.01
7.1.190.0030.00715.79
7.1.180.0100.00615.86
7.1.170.0030.00915.88
7.1.160.0060.00615.95
7.1.150.0070.00715.97
7.1.140.0040.01215.94
7.1.130.0030.01415.84
7.1.120.0120.00315.82
7.1.110.0030.01015.73
7.1.100.0080.00816.85
7.1.90.0060.00915.98
7.1.80.0070.00715.93
7.1.70.0060.00716.53
7.1.60.0090.01017.94
7.1.50.0110.00716.42
7.1.40.0000.01315.88
7.1.30.0070.00715.86
7.1.20.0070.00416.00
7.1.10.0030.00615.64
7.1.00.0050.04319.21
7.0.330.0030.00915.39
7.0.320.0030.00915.44
7.0.310.0050.00515.52
7.0.300.0070.00715.07
7.0.290.0040.00415.42
7.0.280.0090.00615.32
7.0.270.0120.00615.42
7.0.260.0060.00615.46
7.0.250.0000.01215.61
7.0.240.0100.00315.23
7.0.230.0100.00315.47
7.0.220.0070.00715.52
7.0.210.0030.01315.66
7.0.200.0050.00916.12
7.0.190.0030.00915.67
7.0.180.0070.00715.46
7.0.170.0100.00315.74
7.0.160.0030.00715.64
7.0.150.0100.00315.67
7.0.140.0100.03618.77
7.0.130.0050.00315.31
7.0.120.0030.01015.62
7.0.110.0040.01115.54
7.0.100.0080.00415.57
7.0.90.0000.01315.59
7.0.80.0120.00615.63
7.0.70.0060.02718.69
7.0.60.0070.04518.82
7.0.50.0020.04818.95
7.0.40.0060.02616.77
7.0.30.0020.03716.79
7.0.20.0050.04416.72
7.0.10.0020.03316.83
7.0.00.0040.05116.88
5.6.400.0110.00414.43
5.6.390.0000.01514.63
5.6.380.0000.01014.31
5.6.370.0060.00614.34
5.6.360.0120.00314.69
5.6.350.0040.00714.38
5.6.340.0100.00314.39
5.6.330.0070.00714.42
5.6.320.0060.00914.41
5.6.310.0060.00914.44
5.6.300.0030.01314.53
5.6.290.0030.01214.31
5.6.280.0040.04117.87
5.6.270.0090.00914.15
5.6.260.0070.00714.29
5.6.250.0080.00414.27
5.6.240.0030.00614.57
5.6.230.0040.00714.45
5.6.220.0080.04617.57
5.6.210.0070.03317.37
5.6.200.0070.02817.62
5.6.190.0100.02817.61
5.6.180.0030.02717.69
5.6.170.0080.04017.77
5.6.160.0080.03817.85
5.6.150.0050.04317.78
5.6.140.0090.02017.84
5.6.130.0030.03217.80
5.6.120.0080.02517.78
5.6.110.0080.03317.88
5.6.100.0030.05017.94
5.6.90.0150.03717.70
5.6.80.0080.03317.40
5.6.70.0060.03917.23
5.6.60.0050.04617.30
5.6.50.0070.04217.48
5.6.40.0090.04017.31
5.6.30.0080.04117.41
5.6.20.0050.02617.20
5.6.10.0050.04117.37
5.6.00.0040.04417.25
5.5.380.0090.00614.50
5.5.370.0060.00914.29
5.5.360.0030.04517.62
5.5.350.0090.04217.32
5.5.340.0100.04417.54
5.5.330.0100.04517.70
5.5.320.0070.03017.42
5.5.310.0100.04217.83
5.5.300.0050.02717.79
5.5.290.0060.04617.75
5.5.280.0080.02317.64
5.5.270.0040.04817.65
5.5.260.0030.04217.34
5.5.250.0030.02817.41
5.5.240.0030.04417.37
5.5.230.0070.04017.32
5.5.220.0050.04017.34
5.5.210.0070.04017.35
5.5.200.0030.03717.34
5.5.190.0050.04417.38
5.5.180.0060.04517.15
5.5.170.0000.01014.52
5.5.160.0070.04017.31
5.5.150.0120.03517.29
5.5.140.0020.04617.27
5.5.130.0070.04017.16
5.5.120.0070.04117.16
5.5.110.0050.03017.15
5.5.100.0070.03117.23
5.5.90.0020.04517.14
5.5.80.0100.03817.27
5.5.70.0020.03817.29
5.5.60.0060.04317.12
5.5.50.0110.03517.15
5.5.40.0130.03717.13
5.5.30.0050.02317.20
5.5.20.0010.04617.19
5.5.10.0070.04217.23
5.5.00.0060.04617.35
5.4.450.0050.04316.02
5.4.440.0020.02316.09
5.4.430.0030.04515.93
5.4.420.0020.04616.02
5.4.410.0030.02815.94
5.4.400.0010.04615.91
5.4.390.0050.04315.84
5.4.380.0090.03915.84
5.4.370.0100.04015.86
5.4.360.0080.03515.88
5.4.350.0020.04515.85
5.4.340.0130.03515.77
5.4.330.0000.01112.57
5.4.320.0070.03915.75
5.4.310.0050.03315.77
5.4.300.0050.04015.79
5.4.290.0080.04015.87
5.4.280.0070.04215.85
5.4.270.0090.03315.77
5.4.260.0050.02915.88
5.4.250.0050.04215.76
5.4.240.0030.04515.74
5.4.230.0060.04115.85
5.4.220.0100.03715.85
5.4.210.0030.03615.82
5.4.200.0050.03415.80
5.4.190.0040.02315.87
5.4.180.0030.04115.93
5.4.170.0030.04315.92
5.4.160.0050.04115.86
5.4.150.0060.02115.82
5.4.140.0070.02014.49
5.4.130.0000.02414.48
5.4.120.0030.02314.44
5.4.110.0070.01814.47
5.4.100.0050.02214.46
5.4.90.0030.02714.53
5.4.80.0000.02414.46
5.4.70.0050.01814.52
5.4.60.0020.02114.51
5.4.50.0020.01714.51
5.4.40.0040.02314.55
5.4.30.0030.02014.43
5.4.20.0030.01714.45
5.4.10.0020.02814.50
5.4.00.0020.02614.25
5.3.290.0030.03313.65
5.3.280.0030.04213.54
5.3.270.0000.04513.55
5.3.260.0050.03613.56
5.3.250.0070.02313.58
5.3.240.0050.03813.62
5.3.230.0000.04413.56
5.3.220.0020.02513.54
5.3.210.0030.03113.57
5.3.200.0020.02313.59
5.3.190.0030.03913.54
5.3.180.0030.01813.55
5.3.170.0000.02513.59
5.3.160.0030.02213.55
5.3.150.0040.01913.59
5.3.140.0050.02313.52
5.3.130.0030.02013.54
5.3.120.0020.02113.52
5.3.110.0040.02213.56
5.3.100.0020.02013.28
5.3.90.0030.02513.27
5.3.80.0040.03513.25
5.3.70.0040.02213.31
5.3.60.0020.01813.25
5.3.50.0010.01913.24
5.3.40.0030.03313.28
5.3.30.0000.02213.26
5.3.20.0010.02113.10
5.3.10.0010.01813.07
5.3.00.0060.01813.09
5.2.170.0030.02712.54
5.2.160.0000.04712.54
5.2.150.0000.04312.54
5.2.140.0030.02712.54
5.2.130.0000.02712.54
5.2.120.0030.02312.54
5.2.110.0030.03312.54
5.2.100.0000.02312.54
5.2.90.0000.02712.54
5.2.80.0000.04312.54
5.2.70.0000.03012.54
5.2.60.0000.05712.54
5.2.50.0000.03012.54
5.2.40.0030.02712.54
5.2.30.0030.02712.54
5.2.20.0000.02712.54
5.2.10.0030.02312.54
5.2.00.0000.02712.54
5.1.60.0000.02312.54
5.1.50.0000.02012.54
5.1.40.0000.02312.54
5.1.30.0000.04712.54
5.1.20.0030.02312.54
5.1.10.0000.02712.54
5.1.00.0030.04312.54
5.0.50.0000.02012.54
5.0.40.0000.02312.54
5.0.30.0000.04712.54
5.0.20.0000.03012.54
5.0.10.0000.02012.54
5.0.00.0000.03712.54
4.4.90.0000.01312.54
4.4.80.0030.01712.54
4.4.70.0000.01712.54
4.4.60.0000.01312.54
4.4.50.0000.01312.54
4.4.40.0030.02312.54
4.4.30.0000.01312.54
4.4.20.0000.01312.54
4.4.10.0000.02012.54
4.4.00.0000.04012.54
4.3.110.0000.01712.54
4.3.100.0030.01712.54
4.3.90.0030.01712.54
4.3.80.0000.03312.54
4.3.70.0000.01712.54
4.3.60.0000.01312.54
4.3.50.0030.01312.54
4.3.40.0000.02312.54
4.3.30.0000.01712.54
4.3.20.0000.02712.54
4.3.10.0030.01312.54
4.3.00.0000.02012.54

preferences:
35.73 ms | 401 KiB | 5 Q