3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function test(): self { return $this; } }

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.0140.00318.37
8.3.50.0070.00716.11
8.3.40.0120.00318.68
8.3.30.0040.01118.34
8.3.20.0040.00421.85
8.3.10.0040.00421.77
8.3.00.0070.00019.02
8.2.180.0070.01418.08
8.2.170.0170.00322.96
8.2.160.0060.01222.12
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00019.82
8.2.110.0030.00722.24
8.2.100.0110.00017.78
8.2.90.0080.00019.00
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0080.00017.91
8.2.50.0040.00418.10
8.2.40.0030.00620.58
8.2.30.0040.00419.04
8.2.20.0000.00917.91
8.2.10.0000.00717.91
8.2.00.0000.00817.88
8.1.280.0070.01125.92
8.1.270.0040.00422.09
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0140.00720.94
8.1.230.0040.00717.64
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0040.00418.74
8.1.150.0020.00518.75
8.1.140.0070.00019.50
8.1.130.0030.00318.65
8.1.120.0030.00317.29
8.1.110.0040.00417.33
8.1.100.0000.00817.25
8.1.90.0030.00617.30
8.1.80.0070.00017.21
8.1.70.0070.00017.36
8.1.60.0050.00317.48
8.1.50.0040.00417.27
8.1.40.0060.00317.43
8.1.30.0000.00817.50
8.1.20.0040.00417.48
8.1.10.0000.00717.42
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0050.00218.30
8.0.270.0030.00317.12
8.0.260.0000.00718.36
8.0.250.0030.00316.84
8.0.240.0000.00716.86
8.0.230.0030.00316.72
8.0.220.0000.00716.73
8.0.210.0040.00416.66
8.0.200.0020.00516.65
8.0.190.0030.00616.81
8.0.180.0000.00716.83
8.0.170.0040.00416.80
8.0.160.0030.00316.77
8.0.150.0030.00316.78
8.0.140.0000.00716.75
8.0.130.0030.00313.18
8.0.120.0000.00716.72
8.0.110.0000.00716.72
8.0.100.0030.00316.79
8.0.90.0050.00216.55
8.0.80.0040.01416.78
8.0.70.0040.00416.61
8.0.60.0000.00716.73
8.0.50.0040.00416.73
8.0.30.0090.00816.85
8.0.20.0100.01017.40
8.0.10.0040.00416.73
8.0.00.0070.01016.71
7.4.330.0000.00515.55
7.4.320.0070.00016.50
7.4.300.0030.00316.34
7.4.290.0040.00416.38
7.4.280.0040.00416.48
7.4.270.0000.00716.41
7.4.260.0060.00013.13
7.4.250.0040.00416.45
7.4.240.0000.00716.45
7.4.230.0000.00616.45
7.4.220.0130.00916.30
7.4.210.0070.01316.48
7.4.200.0030.00316.44
7.4.160.0090.00716.31
7.4.150.0150.01117.40
7.4.140.0090.00817.86
7.4.130.0120.01216.42
7.4.120.0110.00816.35
7.4.110.0060.01116.58
7.4.100.0150.00316.19
7.4.90.0070.01016.18
7.4.80.0110.01119.39
7.4.70.0000.01516.37
7.4.60.0100.00516.15
7.4.50.0130.00316.05
7.4.40.0090.00616.59
7.4.30.0260.01316.30
7.4.00.0030.01314.48
7.3.330.0050.00013.03
7.3.320.0050.00013.19
7.3.310.0030.00316.12
7.3.300.0000.00716.02
7.3.290.0050.00916.17
7.3.280.0100.00816.13
7.3.270.0150.00317.40
7.3.260.0150.00216.29
7.3.250.0100.01016.17
7.3.240.0110.00516.16
7.3.230.0120.00416.45
7.3.210.0160.01016.10
7.3.200.0030.01416.49
7.3.190.0080.00816.09
7.3.180.0140.00316.30
7.3.170.0090.00616.35
7.3.160.0130.00616.39
7.2.330.0140.00716.47
7.2.320.0120.00616.35
7.2.310.0090.00916.57
7.2.300.0070.01016.48
7.2.290.0090.01316.14
7.2.60.0090.00316.58
7.1.200.0060.00615.55
7.1.70.0040.00716.96
7.1.60.0730.00732.89
7.1.50.0800.01732.92
7.1.40.0700.01332.39
7.1.30.0770.02732.35
7.1.20.0570.01032.53
7.1.10.0330.01314.43
7.1.00.0370.01314.82
7.0.200.0770.01014.78
7.0.190.0500.01314.63
7.0.180.0570.00714.22
7.0.170.0670.00714.07
7.0.160.0500.01014.21
7.0.150.0430.01013.95
7.0.140.0570.01014.14
7.0.130.0400.01014.43
7.0.120.0470.01014.39
7.0.110.0470.00314.21
7.0.100.0670.01314.20
7.0.90.0470.01014.26
7.0.80.0370.01014.56
7.0.70.0430.00714.33
7.0.60.0570.01013.89
7.0.50.0470.01314.31
7.0.40.0630.01714.52
7.0.30.0900.01314.45
7.0.20.0700.01314.48
7.0.10.0500.00714.48
7.0.00.0500.00014.36

preferences:
54.67 ms | 400 KiB | 5 Q