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); } */ false || ($s_result = 'fail' && $s_jc = 'la lia');

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.40.0150.00018.71
8.3.30.0080.00818.71
8.3.20.0120.00318.61
8.3.10.0080.00020.57
8.3.00.0060.00319.38
8.2.170.0130.00322.96
8.2.160.0100.00322.12
8.2.150.0140.00024.18
8.2.140.0100.00324.66
8.2.130.0060.00326.16
8.2.120.0040.00419.83
8.2.110.0060.00320.89
8.2.100.0070.00417.72
8.2.90.0000.00719.21
8.2.80.0040.00417.80
8.2.70.0090.00017.63
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0040.00418.16
8.2.30.0090.00018.09
8.2.20.0040.00417.71
8.2.10.0000.00717.80
8.2.00.0000.00717.80
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00420.73
8.1.230.0030.00920.96
8.1.220.0030.00617.74
8.1.210.0000.00918.94
8.1.200.0030.00617.23
8.1.190.0070.00017.53
8.1.180.0050.00318.10
8.1.170.0040.00418.88
8.1.160.0040.00418.75
8.1.150.0040.00418.73
8.1.140.0000.00717.49
8.1.130.0030.00317.81
8.1.120.0000.00717.31
8.1.110.0050.00317.32
8.1.100.0000.00717.43
8.1.90.0000.00717.46
8.1.80.0040.00417.39
8.1.70.0000.00717.43
8.1.60.0040.00417.40
8.1.50.0060.00317.48
8.1.40.0000.00717.45
8.1.30.0000.00717.49
8.1.20.0050.00317.59
8.1.10.0040.00417.48
8.1.00.0000.00817.39
8.0.300.0070.00019.89
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0000.00717.24
8.0.260.0070.00018.52
8.0.250.0040.00416.83
8.0.240.0060.00316.84
8.0.230.0030.00316.76
8.0.220.0030.00316.91
8.0.210.0000.00716.81
8.0.200.0060.00016.95
8.0.190.0050.00316.82
8.0.180.0000.00816.91
8.0.170.0070.00216.77
8.0.160.0000.00716.89
8.0.150.0030.00616.74
8.0.140.0000.00716.73
8.0.130.0030.00313.24
8.0.120.0070.00016.71
8.0.110.0000.00716.69
8.0.100.0040.00416.77
8.0.90.0000.00716.89
8.0.80.0070.00716.79
8.0.70.0040.00416.91
8.0.60.0070.00016.90
8.0.50.0040.00416.76
8.0.30.0110.00816.91
8.0.20.0110.00817.40
8.0.10.0040.00416.87
8.0.00.0110.00916.74
7.4.330.0020.00213.43
7.4.320.0000.00616.60
7.4.300.0030.00316.57
7.4.290.0070.00016.57
7.4.280.0040.00416.35
7.4.270.0030.00316.48
7.4.260.0030.00313.38
7.4.250.0040.00416.56
7.4.240.0020.00516.48
7.4.230.0070.00016.29
7.4.220.0160.00416.53
7.4.210.0090.00516.63
7.4.200.0070.00016.68
7.4.190.0070.00016.70
7.4.160.0120.00916.32
7.4.150.0110.01417.40
7.4.140.0100.00917.26
7.4.130.0070.01116.34
7.4.120.0070.01116.46
7.4.110.0170.00316.21
7.4.100.0120.00916.43
7.4.90.0090.00916.53
7.4.80.0060.01119.03
7.4.70.0070.01016.29
7.4.60.0000.02016.35
7.4.50.0040.00016.55
7.4.40.0040.01122.27
7.4.30.0110.00616.39
7.4.00.0040.01214.74
7.3.330.0030.00313.11
7.3.320.0000.00713.00
7.3.310.0040.00416.11
7.3.300.0070.00016.09
7.3.290.0030.01016.11
7.3.280.0120.00616.11
7.3.270.0150.00317.40
7.3.260.0140.00918.24
7.3.250.0120.01216.12
7.3.240.0120.00416.21
7.3.230.0060.00916.39
7.3.210.0100.00716.07
7.3.200.0030.01319.39
7.3.190.0130.01016.51
7.3.180.0060.00916.38
7.3.170.0100.00716.43
7.3.160.0060.00916.24
7.3.120.0090.00614.76
7.2.330.0160.00616.50
7.2.320.0100.01016.54
7.2.310.0120.01216.42
7.2.300.0080.00816.37
7.2.290.0130.00316.32
7.2.00.0030.01019.46
7.1.100.0060.00618.13
7.1.70.0000.01017.03
7.1.60.0100.01419.40
7.1.50.0130.00616.76
7.1.00.0070.07022.44
7.0.200.0000.00716.64
7.0.140.0070.06721.97
7.0.60.0100.04319.77
7.0.50.0000.05317.80
7.0.40.0070.08317.70
7.0.30.0030.09017.75
7.0.20.0100.07317.73
7.0.10.0100.05017.78
7.0.00.0100.08317.66
5.6.280.0100.06720.89
5.6.210.0030.04020.47
5.6.200.0070.06318.16
5.6.190.0070.08018.19
5.6.180.0030.07718.17
5.6.170.0070.06018.22
5.6.160.0030.09018.21
5.6.150.0100.05318.19
5.6.140.0000.04318.21
5.6.130.0070.06718.20
5.6.120.0070.08718.12
5.6.110.0100.07718.11
5.6.100.0070.07718.08
5.6.90.0070.08018.10
5.6.80.0100.07717.54
5.6.70.0100.03317.50
5.6.60.0100.07017.59
5.6.50.0070.05717.50
5.6.40.0100.08017.54
5.6.30.0130.07317.42
5.6.20.0070.05717.46
5.6.10.0000.05317.62
5.6.00.0070.04717.46
5.5.350.3700.03720.33
5.5.340.0000.05717.92
5.5.330.0030.06318.01
5.5.320.0130.07018.02
5.5.310.0030.05317.99
5.5.300.0130.04717.92
5.5.290.0130.07317.88
5.5.280.0030.04317.96
5.5.270.0070.08717.94
5.5.260.0030.04317.96
5.5.250.0130.07317.82
5.5.240.0130.07017.40
5.5.230.0170.06317.33
5.5.220.0030.07317.35
5.5.210.0030.05017.32
5.5.200.0070.04717.30
5.5.190.0100.07317.27
5.5.180.0070.08017.36
5.5.160.0170.06717.37
5.5.150.0030.08317.26
5.5.140.0100.07017.35
5.5.130.0000.06017.31
5.5.120.0070.07017.26
5.5.110.0030.07717.38
5.5.100.0070.07317.24
5.5.90.0170.07017.25
5.5.80.0030.06017.23
5.5.70.0200.06017.16
5.5.60.0100.07717.22
5.5.50.0070.04317.22
5.5.40.0030.03717.21
5.5.30.0000.04017.12
5.5.20.0030.03717.18
5.5.10.0100.03317.15
5.5.00.0030.03717.19
5.4.450.0130.07319.34
5.4.440.0170.03719.31
5.4.430.0070.08019.43
5.4.420.0000.04319.15
5.4.410.0030.06319.40
5.4.400.0000.05719.21
5.4.390.0070.07319.04
5.4.380.0170.05018.89
5.4.370.0130.04719.03
5.4.360.0070.07018.97
5.4.350.0000.08318.82
5.4.340.0070.07719.05
5.4.320.0070.05719.03
5.4.310.0070.04318.98
5.4.300.0030.08319.01
5.4.290.0100.07719.09
5.4.280.0070.07718.98
5.4.270.0030.04719.20
5.4.260.0030.06719.07
5.4.250.0100.07018.95
5.4.240.0130.05719.08
5.4.230.0000.08718.95
5.4.220.0000.08019.10
5.4.210.0100.05018.82
5.4.200.0130.05018.88
5.4.190.0030.03719.04
5.4.180.0070.03719.00
5.4.170.0000.04018.94
5.4.160.0100.03018.95
5.4.150.0000.04018.95
5.4.140.0000.04016.24
5.4.130.0030.03316.24
5.4.120.0030.03316.28
5.4.110.0000.03716.25
5.4.100.0000.03716.46
5.4.90.0000.04316.28
5.4.80.0070.03016.41
5.4.70.0030.03316.50
5.4.60.0070.04016.36
5.4.50.0070.03016.26
5.4.40.0030.03316.46
5.4.30.0030.03316.32
5.4.20.0030.03316.26
5.4.10.0030.03316.49
5.4.00.0000.03715.70
5.3.290.0130.03014.65
5.3.280.0000.08714.53
5.3.270.0030.03714.35
5.3.260.0000.04014.53
5.3.250.0070.03014.54
5.3.240.0070.03714.56
5.3.230.0030.04314.55
5.3.220.0030.03714.51
5.3.210.0000.04014.47
5.3.200.0030.03314.54
5.3.190.0000.04014.38
5.3.180.0000.03714.50
5.3.170.0070.03314.54
5.3.160.0000.03714.35
5.3.150.0030.03314.41
5.3.140.0070.03014.37
5.3.130.0030.04014.40
5.3.120.0000.04014.40
5.3.110.0070.03314.48
5.3.100.0000.04314.00
5.3.90.0070.03013.95
5.3.80.0000.03714.00
5.3.70.0030.03713.94
5.3.60.0100.02713.95
5.3.50.0000.03713.70
5.3.40.0030.03713.70
5.3.30.0070.03013.86
5.3.20.0000.04013.63
5.3.10.0030.04013.57
5.3.00.0100.03313.56
5.2.170.0070.03011.14
5.2.160.0030.03311.29
5.2.150.0000.03011.28
5.2.140.0030.02711.10
5.2.130.0030.02710.95
5.2.120.0030.02711.02
5.2.110.0070.02711.13
5.2.100.0000.03011.08
5.2.90.0070.05710.88
5.2.80.0070.03311.08
5.2.70.0000.06710.83
5.2.60.0030.03011.04
5.2.50.0000.05010.84
5.2.40.0030.03010.94
5.2.30.0030.04010.79
5.2.20.0070.05710.94
5.2.10.0030.05010.87
5.2.00.0030.06710.75
5.1.60.0030.05310.05
5.1.50.0030.0339.97
5.1.40.0070.0339.90
5.1.30.0070.05310.21
5.1.20.0100.03710.33
5.1.10.0030.05010.09
5.1.00.0070.02710.14
5.0.50.0070.0308.37
5.0.40.0000.0508.38
5.0.30.0030.0308.26
5.0.20.0030.0178.28
5.0.10.0000.0208.23
5.0.00.0030.0338.21
4.4.90.0000.0307.66
4.4.80.0000.0177.66
4.4.70.0000.0177.66
4.4.60.0000.0207.66
4.4.50.0000.0377.66
4.4.40.0070.0307.66
4.4.30.0000.0377.66
4.4.20.0000.0377.66
4.4.10.0000.0377.66
4.4.00.0030.0337.66
4.3.110.0000.0377.66
4.3.100.0000.0237.66
4.3.90.0000.0377.66
4.3.80.0070.0377.66
4.3.70.0000.0207.66
4.3.60.0000.0177.66
4.3.50.0000.0177.66
4.3.40.0030.0437.66
4.3.30.0000.0407.66
4.3.20.0030.0337.66
4.3.10.0070.0337.66
4.3.00.0030.0207.66

preferences:
41.86 ms | 400 KiB | 5 Q