3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestAttribute {} class NestedAttribute {} #[TestAttribute(new \NestedAttribute())] class A {}

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.5.30.0090.00820.16
8.5.20.0120.00519.93
8.5.10.0090.00818.66
8.5.00.0130.00819.82
8.4.180.0130.01019.71
8.4.170.0120.01120.41
8.4.160.0060.00321.44
8.4.150.0070.00516.80
8.4.140.0110.01017.45
8.4.130.0160.00517.73
8.4.120.0120.00720.73
8.4.110.0110.00819.00
8.4.100.0120.00919.36
8.4.90.0080.00918.36
8.4.80.0010.00718.62
8.4.70.0140.00218.24
8.4.60.0110.01018.85
8.4.50.0010.00818.56
8.4.40.0070.01017.61
8.4.30.0130.00720.47
8.4.20.0100.00017.91
8.4.10.0030.00617.50
8.3.300.0070.01320.81
8.3.290.0110.00920.71
8.3.280.0140.00818.57
8.3.270.0120.00716.51
8.3.260.0100.00816.37
8.3.250.0120.00718.75
8.3.240.0080.01117.07
8.3.230.0100.00916.48
8.3.220.0100.00818.79
8.3.210.0080.01016.38
8.3.200.0040.00516.50
8.3.190.0070.00317.12
8.3.180.0070.00818.75
8.3.170.0060.01220.37
8.3.160.0120.00617.21
8.3.150.0120.00318.79
8.3.140.0100.00016.79
8.3.130.0080.00018.38
8.3.120.0060.00318.75
8.3.110.0060.00922.58
8.3.100.0000.00922.58
8.3.50.0090.00922.58
8.2.300.0130.00717.85
8.2.290.0070.01120.29
8.2.280.0150.00418.09
8.2.270.0070.01117.14
8.2.260.0110.00716.60
8.2.250.0040.00416.73
8.2.240.0090.00918.84
8.2.230.0110.00022.58
8.2.220.0060.00322.58
8.1.340.0110.01021.52
8.1.330.0090.01021.66
8.1.320.0080.01116.01
8.1.310.0070.01016.48
8.1.300.0080.00018.26
8.1.20.0080.00217.46
8.1.10.0060.00617.22
8.1.00.0080.00417.30
8.0.150.0100.00316.75
8.0.140.0160.00316.63
8.0.130.0050.00216.77
8.0.120.0050.01016.69
8.0.110.0110.00716.69
8.0.100.0030.01416.69
8.0.90.0050.01416.67
8.0.80.0140.00516.65
8.0.70.0110.00416.55
8.0.60.0100.00516.79
8.0.50.0160.00316.77
8.0.30.0110.00716.81
8.0.20.0190.00016.70
8.0.10.0140.00516.79
7.4.270.0170.00316.34
7.4.260.0170.00616.39
7.4.250.0170.00616.40
7.4.240.0270.00616.25
7.4.230.0160.00816.39
7.4.220.0040.00416.35
7.4.210.0110.00716.35
7.4.200.0100.00616.38
7.4.190.0120.00616.40
7.4.180.0110.00416.51
7.4.160.0090.00316.40
7.4.150.0140.00516.50
7.4.140.0080.00816.33
7.4.130.0110.00416.21
7.4.120.0150.00016.28
7.4.110.0170.00016.22
7.4.100.0150.00316.39
7.4.90.0110.00816.21
7.4.80.0140.00016.18
7.4.70.0060.01016.27
7.4.60.0070.00716.18
7.4.50.0090.00416.08
7.4.40.0080.00816.23
7.4.30.0140.00316.11
7.4.20.0100.00716.20
7.4.10.0100.00316.27
7.4.00.0030.00316.32

preferences:
43.52 ms | 902 KiB | 5 Q