3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I{} trait T{ function t(){} } function a(): I { return new class implements I{ use T; }; }

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.70.0140.00718.03
8.3.60.0120.00417.93
8.3.50.0110.00419.92
8.3.40.0170.00018.60
8.3.30.0140.00018.55
8.3.20.0040.00422.08
8.3.10.0050.00320.41
8.3.00.0040.00423.52
8.2.180.0150.00318.04
8.2.170.0070.01022.96
8.2.160.0000.01420.43
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00020.22
8.2.120.0040.00426.35
8.2.110.0060.00320.30
8.2.100.0070.00717.47
8.2.90.0030.00518.89
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00817.79
8.2.50.0000.00718.10
8.2.40.0000.00920.46
8.2.30.0070.00018.99
8.2.20.0050.00317.97
8.2.10.0000.00817.80
8.2.00.0000.00717.96
8.1.280.0080.00825.92
8.1.270.0000.00823.79
8.1.260.0000.00826.35
8.1.250.0080.00328.09
8.1.240.0050.00322.87
8.1.230.0070.00317.52
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.00
8.1.190.0030.00516.97
8.1.180.0000.00718.10
8.1.170.0000.00818.53
8.1.160.0000.00718.75
8.1.150.0040.00418.71
8.1.140.0040.00419.07
8.1.130.0040.00418.83
8.1.120.0040.00417.38
8.1.110.0040.00417.30
8.1.100.0040.00417.35
8.1.90.0040.00417.31
8.1.80.0050.00317.31
8.1.70.0000.00817.30
8.1.60.0060.00317.48
8.1.50.0040.00417.39
8.1.40.0040.00417.38
8.1.30.0040.00417.56
8.1.20.0020.00517.55
8.1.10.0040.00417.39
8.1.00.0030.00617.29
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0040.00418.32
8.0.270.0070.00017.07
8.0.260.0040.00418.30
8.0.250.0040.00416.69
8.0.240.0040.00416.71
8.0.230.0070.00016.74
8.0.220.0050.00516.74
8.0.210.0080.00016.64
8.0.200.0030.00316.73
8.0.190.0070.00416.78
8.0.180.0040.00416.78
8.0.170.0030.00516.83
8.0.160.0000.00816.67
8.0.150.0000.00716.79
8.0.140.0040.00416.61
8.0.130.0030.00313.17
8.0.120.0000.00816.76
8.0.110.0040.00416.58
8.0.100.0030.00516.61
8.0.90.0030.00516.86
8.0.80.0100.01316.76
8.0.70.0000.00716.70
8.0.60.0040.00416.86
8.0.50.0000.00816.64
8.0.30.0110.00916.86
8.0.20.0100.01117.40
8.0.10.0020.00516.91
8.0.00.0120.00516.46
7.4.330.0000.00516.76
7.4.320.0000.00616.43
7.4.300.0000.00616.34
7.4.290.0030.00616.44
7.4.280.0030.00616.34
7.4.270.0070.00016.35
7.4.260.0080.00016.40
7.4.250.0030.00316.37
7.4.240.0000.00716.45
7.4.230.0030.00316.46
7.4.220.0040.00416.48
7.4.210.0070.01416.40
7.4.200.0030.00516.34
7.4.160.0090.00916.34
7.4.150.0100.01017.40
7.4.140.0120.00817.86
7.4.130.0030.01316.45
7.4.120.0100.01116.30
7.4.110.0100.01016.39
7.4.100.0080.00816.19
7.4.90.0030.01416.27
7.4.80.0110.00919.39
7.4.70.0100.00716.49
7.4.60.0080.00816.33
7.4.50.0090.00616.27
7.4.40.0070.01016.27
7.4.30.0090.00616.31
7.4.00.0030.01314.94
7.3.330.0020.00213.24
7.3.320.0000.00613.00
7.3.310.0030.00316.02
7.3.300.0070.00016.16
7.3.290.0060.00916.16
7.3.280.0050.00916.16
7.3.270.0150.00617.40
7.3.260.0130.00816.28
7.3.250.0100.00716.24
7.3.240.0130.00416.27
7.3.230.0130.00716.22
7.3.210.0040.01716.25
7.3.200.0060.01116.07
7.3.190.0060.01316.11
7.3.180.0120.00316.43
7.3.170.0040.01216.18
7.3.160.0030.01316.20
7.3.120.0080.00414.52
7.3.110.0090.00614.69
7.3.100.0070.00714.34
7.3.90.0030.00614.60
7.3.80.0090.00014.60
7.3.70.0050.00414.65
7.3.60.0120.00314.55
7.3.50.0040.00814.73
7.3.40.0040.01114.66
7.3.30.0000.01414.46
7.3.20.0080.00516.22
7.3.10.0070.00716.30
7.3.00.0030.00716.32
7.2.330.0140.01116.28
7.2.320.0040.01616.28
7.2.310.0030.01316.31
7.2.300.0100.01316.34
7.2.290.0060.01116.57
7.2.250.0030.01714.96
7.2.240.0070.01414.82
7.2.230.0090.00614.67
7.2.220.0030.00614.68
7.2.210.0000.01514.87
7.2.200.0030.01014.50
7.2.190.0060.00914.85
7.2.180.0030.00614.73
7.2.170.0030.01414.94
7.2.60.0120.00316.65
7.2.00.0040.01419.47
7.1.330.0000.01515.65
7.1.320.0070.00715.35
7.1.310.0070.00715.45
7.1.300.0060.00615.51
7.1.290.0030.00715.52
7.1.280.0000.00815.52
7.1.270.0040.01115.38
7.1.260.0000.01515.32
7.1.200.0000.01315.41
7.1.120.0030.01218.48
7.1.110.0090.00317.98
7.1.100.0060.00617.94
7.1.90.0060.01017.68
7.1.80.0080.00517.92
7.1.70.0030.00917.13
7.1.60.0230.00435.06
7.1.50.0190.00634.48
7.1.40.0160.01034.27
7.1.30.0190.01934.11
7.1.20.0230.00334.23
7.1.10.0070.01016.43
7.1.00.0000.01216.57

preferences:
118.56 ms | 400 KiB | 5 Q