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); } */ true || version();

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.0090.01216.38
8.3.50.0120.00621.07
8.3.40.0170.00018.60
8.3.30.0100.01018.70
8.3.20.0050.00220.09
8.3.10.0050.00321.98
8.3.00.0030.00522.39
8.2.180.0160.00316.32
8.2.170.0100.00722.96
8.2.160.0170.00318.94
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00319.20
8.2.110.0030.00620.53
8.2.100.0070.00419.41
8.2.90.0000.00719.10
8.2.80.0080.00019.16
8.2.70.0000.00917.36
8.2.60.0040.00417.77
8.2.50.0030.00618.07
8.2.40.0000.00718.16
8.2.30.0040.00417.86
8.2.20.0000.00817.48
8.2.10.0050.00217.46
8.2.00.0060.00317.65
8.1.280.0160.00325.92
8.1.270.0030.00620.21
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00723.75
8.1.230.0090.00318.84
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.13
8.1.190.0050.00317.30
8.1.180.0070.00018.29
8.1.170.0000.00818.51
8.1.160.0070.00022.18
8.1.150.0030.00618.51
8.1.140.0000.00817.27
8.1.130.0030.00617.80
8.1.120.0020.00517.37
8.1.110.0030.00517.34
8.1.100.0000.00817.19
8.1.90.0000.00717.32
8.1.80.0030.00517.17
8.1.70.0030.00517.20
8.1.60.0030.00617.43
8.1.50.0080.00017.44
8.1.40.0000.00717.25
8.1.30.0070.00017.50
8.1.20.0030.00717.48
8.1.10.0050.00217.35
8.1.00.0000.00717.33
8.0.300.0040.00418.77
8.0.290.0000.00716.93
8.0.280.0040.00418.22
8.0.270.0000.00717.03
8.0.260.0000.00616.55
8.0.250.0000.00716.89
8.0.240.0000.00816.70
8.0.230.0060.00016.80
8.0.220.0070.00016.80
8.0.210.0030.00316.76
8.0.200.0030.00316.68
8.0.190.0080.00316.67
8.0.180.0030.00516.80
8.0.170.0070.00016.73
8.0.160.0000.00816.80
8.0.150.0040.00416.58
8.0.140.0000.00716.71
8.0.130.0030.00313.16
8.0.120.0070.00016.62
8.0.110.0000.00716.68
8.0.100.0000.00716.66
8.0.90.0000.00716.59
8.0.80.0160.00016.72
8.0.70.0000.00716.68
8.0.60.0030.00516.70
8.0.50.0040.00416.54
8.0.30.0150.00417.08
8.0.20.0070.01117.40
8.0.10.0050.00316.88
8.0.00.0110.00516.46
7.4.330.0040.00015.00
7.4.320.0030.00316.46
7.4.300.0070.00016.36
7.4.290.0050.00516.47
7.4.280.0050.00316.46
7.4.270.0030.00316.22
7.4.260.0000.00716.36
7.4.250.0040.00416.43
7.4.240.0040.00416.32
7.4.230.0040.00416.48
7.4.220.0080.01516.48
7.4.210.0060.00816.42
7.4.200.0050.00216.27
7.4.190.0000.00716.32
7.4.160.0060.00916.37
7.4.150.0070.01117.40
7.4.140.0110.00717.86
7.4.130.0060.01116.49
7.4.120.0110.00616.49
7.4.110.0090.00616.25
7.4.100.0060.01016.34
7.4.90.0100.00716.39
7.4.80.0040.01719.39
7.4.70.0070.01416.14
7.4.60.0000.01716.33
7.4.50.0040.00016.34
7.4.40.0130.00322.77
7.4.30.0100.00716.41
7.4.00.0130.00314.95
7.3.330.0030.00313.01
7.3.320.0040.00413.03
7.3.310.0020.00415.89
7.3.300.0000.00716.16
7.3.290.0040.01116.11
7.3.280.0080.00916.18
7.3.270.0140.00317.40
7.3.260.0160.00816.49
7.3.250.0100.00716.28
7.3.240.0030.01316.16
7.3.230.0110.00716.39
7.3.210.0190.01916.07
7.3.200.0140.00719.39
7.3.190.0150.00716.42
7.3.180.0030.01016.30
7.3.170.0130.00716.31
7.3.160.0120.00816.31
7.3.120.0120.00414.31
7.2.330.0080.00916.40
7.2.320.0130.00916.40
7.2.310.0130.00316.54
7.2.300.0100.01316.48
7.2.290.0130.00316.50
7.2.60.0040.00816.49
7.2.00.0070.01019.14
7.1.200.0100.00215.21
7.1.100.0040.00717.92
7.1.70.0070.00016.84
7.1.60.0060.01219.82
7.1.50.0100.01416.81
7.1.00.0030.03722.48
7.0.200.0000.01016.38
7.0.140.0000.07322.18
7.0.60.0070.03719.90
7.0.50.0100.05717.86
7.0.40.0130.07320.04
7.0.30.0270.08020.28
7.0.20.0230.06320.01
7.0.10.0270.06020.13
7.0.00.0130.07020.08
5.6.210.0100.06320.52
5.6.200.0070.08018.22
5.6.190.0000.08320.78
5.6.180.3200.04020.32
5.6.170.0300.04020.52
5.6.160.0030.05720.42
5.6.150.0070.04718.22
5.6.140.0100.05318.23
5.6.130.0100.05018.18
5.6.120.0000.07021.04
5.6.110.0070.08321.14
5.6.100.0000.09021.11
5.6.90.0070.08720.98
5.6.80.0170.07320.38
5.6.70.0270.06320.37
5.5.350.0070.04320.48
5.5.340.0070.03317.99
5.5.330.0100.03720.21
5.5.320.0170.04020.31
5.5.310.0330.07320.24
5.5.300.0070.06017.94
5.5.290.0130.03318.02
5.5.280.0100.08320.75
5.5.270.0130.05320.83
5.5.260.0030.09020.95
5.5.250.0100.07320.49
5.5.240.0130.07020.11
5.4.450.0900.04719.56
5.4.440.0730.06319.58
5.4.430.0170.04719.12
5.4.420.0630.06019.46
5.4.410.0970.05019.39
5.4.400.1000.06018.68
5.4.390.0370.04718.74
5.4.380.0270.05718.74
5.4.370.0100.05718.48
5.4.360.0330.03318.70
5.4.350.0090.06711.97
5.4.340.0060.04711.96
5.4.320.0030.04612.45
5.4.310.0040.04012.45
5.4.300.0080.04112.46
5.4.290.0040.03912.45
5.4.280.0060.04512.35
5.4.270.0070.04112.34
5.4.260.0070.04212.34
5.4.250.0070.05318.82
5.4.240.0030.06318.68
5.4.230.0070.05318.83
5.4.220.0170.07018.71
5.4.210.0070.06318.85
5.4.200.0170.05718.85
5.4.190.0070.08018.66
5.4.180.0130.06718.89
5.4.170.0070.05718.87
5.4.160.0070.05018.65
5.4.150.0070.05318.84
5.4.140.0100.04716.33
5.4.130.0170.04016.45
5.4.120.0130.04716.25
5.4.110.0000.06716.47
5.4.100.0100.04716.41
5.4.90.0070.05016.48
5.4.80.0030.05016.34
5.4.70.0070.04716.20
5.4.60.0170.03716.29
5.4.50.0170.05716.28
5.4.40.0030.05316.38
5.4.30.0170.04016.41
5.4.20.0070.04716.14
5.4.10.0070.05316.38
5.4.00.0070.05015.70
5.3.290.0070.03712.80
5.3.280.0100.05314.63
5.3.270.0100.07314.75
5.3.260.0030.05314.62
5.3.250.0170.04014.75
5.3.240.0070.07014.75
5.3.230.0170.04314.36
5.3.220.0100.06314.58
5.3.210.0070.05014.42
5.3.200.0100.06714.35
5.3.190.0130.04314.28
5.3.180.0100.04714.57
5.3.170.0100.04714.65
5.3.160.0130.04014.55
5.3.150.0070.07714.41
5.3.140.0070.05014.55
5.3.130.0070.05014.64
5.3.120.0070.05314.54
5.3.110.0100.04714.46
5.3.100.0070.06013.91
5.3.90.0070.05014.10
5.3.80.0130.04014.06
5.3.70.0000.05314.01
5.3.60.0100.05013.69
5.3.50.0070.04713.98
5.3.40.0030.05313.96
5.3.30.0100.04313.77
5.3.20.0100.04713.55
5.3.10.0100.04713.66
5.3.00.0030.06013.49

preferences:
36.52 ms | 401 KiB | 5 Q