3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(): string { return 'xx'; } }

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.0110.00318.50
8.3.30.0070.00718.59
8.3.20.0000.00719.97
8.3.10.0080.00023.48
8.3.00.0090.00019.13
8.2.170.0120.00322.96
8.2.160.0090.00920.34
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00417.50
8.2.120.0070.00026.35
8.2.110.0060.00321.00
8.2.100.0040.00717.72
8.2.90.0030.00617.81
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0070.00417.68
8.2.50.0090.00318.07
8.2.40.0080.00819.30
8.2.30.0040.00420.67
8.2.20.0060.00317.42
8.2.10.0040.00417.86
8.2.00.0040.00417.93
8.1.270.0030.00723.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00822.19
8.1.230.0080.00422.74
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00816.75
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0040.00421.86
8.1.150.0080.00018.74
8.1.140.0030.00619.37
8.1.130.0040.00417.57
8.1.120.0030.00317.36
8.1.110.0000.00917.35
8.1.100.0040.00417.23
8.1.90.0000.00717.26
8.1.80.0070.00017.30
8.1.70.0000.00817.20
8.1.60.0040.00417.40
8.1.50.0040.00417.33
8.1.40.0060.00317.38
8.1.30.0080.00017.42
8.1.20.0040.00417.55
8.1.10.0040.00417.42
8.1.00.0070.00017.22
8.0.300.0000.00920.11
8.0.290.0040.00416.63
8.0.280.0000.00918.29
8.0.270.0000.00717.07
8.0.260.0030.00317.09
8.0.250.0050.00216.79
8.0.240.0000.00616.84
8.0.230.0000.00716.87
8.0.220.0030.00616.75
8.0.210.0000.00916.74
8.0.200.0000.00616.68
8.0.190.0030.00516.75
8.0.180.0000.00816.79
8.0.170.0040.00416.73
8.0.160.0070.00016.67
8.0.150.0030.00616.69
8.0.140.0050.00316.68
8.0.130.0060.00013.11
8.0.120.0050.00316.60
8.0.110.0000.00816.75
8.0.100.0070.00016.63
8.0.90.0040.00416.73
8.0.80.0090.00616.75
8.0.70.0070.00016.54
8.0.60.0070.00016.75
8.0.50.0040.00416.83
8.0.30.0080.01216.90
8.0.20.0140.00517.40
8.0.10.0070.00016.73
8.0.00.0100.00616.63
7.4.330.0000.00516.89
7.4.320.0080.00016.47
7.4.300.0000.00716.50
7.4.290.0000.00816.47
7.4.280.0030.00516.38
7.4.270.0000.00716.43
7.4.260.0030.00316.42
7.4.250.0040.00416.40
7.4.240.0010.00616.40
7.4.230.0030.00316.39
7.4.220.0120.01516.54
7.4.210.0100.01016.49
7.4.200.0040.00416.56
7.4.160.0080.00816.24
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0130.00616.33
7.4.120.0160.00516.38
7.4.110.0100.00716.37
7.4.100.0000.02316.23
7.4.90.0060.01116.36
7.4.80.0160.00619.39
7.4.70.0100.00616.36
7.4.60.0060.00916.22
7.4.50.0060.00916.42
7.4.40.0080.00816.38
7.4.30.0110.01116.29
7.4.00.0020.01514.80
7.3.330.0060.00013.17
7.3.320.0020.00213.14
7.3.310.0000.00716.04
7.3.300.0040.00416.08
7.3.290.0060.00816.15
7.3.280.0080.00916.16
7.3.270.0160.00317.40
7.3.260.0070.01016.11
7.3.250.0100.00716.25
7.3.240.0110.00616.25
7.3.230.0150.00816.39
7.3.210.0030.01316.18
7.3.200.0080.00816.23
7.3.190.0110.00616.40
7.3.180.0100.00715.98
7.3.170.0000.01516.27
7.3.160.0160.00016.11
7.3.120.0060.01014.59
7.3.110.0090.01014.45
7.3.100.0060.01214.78
7.3.90.0110.00714.64
7.3.80.0090.00614.54
7.3.70.0060.00914.39
7.3.60.0030.00914.66
7.3.50.0040.01514.63
7.3.40.0100.01014.59
7.3.30.0030.00614.72
7.3.20.0090.00316.50
7.3.10.0060.00616.49
7.3.00.0030.01016.23
7.2.330.0090.01316.45
7.2.320.0130.00916.49
7.2.310.0070.01016.44
7.2.300.0090.00916.52
7.2.290.0100.00716.64
7.2.250.0090.00314.75
7.2.240.0070.01214.65
7.2.230.0070.00714.91
7.2.220.0000.01114.80
7.2.210.0030.00714.72
7.2.200.0040.00714.58
7.2.190.0000.01314.67
7.2.180.0100.01014.68
7.2.170.0070.01014.70
7.2.130.0000.01316.58
7.2.120.0060.00616.43
7.2.110.0030.01416.35
7.2.100.0030.00916.43
7.2.90.0080.00616.67
7.2.80.0090.00016.51
7.2.70.0040.00716.19
7.2.60.0100.00516.60
7.2.50.0100.00316.39
7.2.40.0100.00316.10
7.2.30.0070.00716.84
7.2.20.0090.00316.78
7.2.10.0090.00616.55
7.2.00.0130.00417.95
7.1.330.0080.00415.54
7.1.320.0000.01415.48
7.1.310.0060.00915.47
7.1.300.0030.00915.48
7.1.290.0040.01115.60
7.1.280.0120.00915.39
7.1.270.0050.00815.60
7.1.260.0080.00015.59
7.1.250.0070.00715.48
7.1.200.0070.00715.58
7.1.100.0030.01017.91
7.1.70.0040.00417.04
7.1.60.0100.01319.36
7.1.50.0050.00516.53
7.1.00.0030.07322.51
7.0.200.0070.00316.38
7.0.60.0030.06319.89
7.0.50.0070.08317.82
7.0.40.0070.05320.24
7.0.30.0230.05720.13
7.0.20.0230.08720.33
7.0.10.0070.04320.33
7.0.00.0070.08320.23
5.6.280.0000.03721.15
5.6.210.0070.05320.61
5.6.200.0070.05718.15
5.6.190.0100.05020.52
5.6.180.0330.05720.68
5.6.170.0300.06720.47
5.6.160.0200.04720.50
5.6.150.0030.05318.15
5.6.140.0100.07318.12
5.6.130.0030.08318.17
5.6.120.0130.05321.14
5.6.110.0130.07020.89
5.6.100.0030.07021.14
5.6.90.0070.08321.00
5.6.80.0070.03320.43
5.5.350.0200.06320.32
5.5.340.0100.03717.99
5.5.330.0030.06020.13
5.5.320.0230.08320.33
5.5.310.0330.08020.32
5.5.300.0030.05318.07
5.5.290.0070.03717.98
5.5.280.0070.08320.78
5.5.270.0030.08720.93
5.5.260.0000.08720.75
5.5.250.0070.08020.58
5.5.240.0300.06720.34

preferences:
52.88 ms | 400 KiB | 5 Q