3v4l.org

run code in 500+ PHP versions simultaneously
<?php #[MyAttribute] class x {} #[MyAttribute] enum e {} #[MyAttribute] interface i {} #[MyAttribute] trait t {} // =================== #[MyFunctionAttribute] function foo() {} $c = #[MyFunctionAttribute] function () {}; $f = #[MyFunctionAttribute] fn () => 1;

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.60.0070.00716.66
8.5.50.0080.00916.46
8.5.30.0080.00819.73
8.5.20.0130.00420.16
8.5.10.0080.01116.63
8.5.00.0160.00819.91
8.4.210.0150.00719.31
8.4.180.0120.01019.64
8.4.170.0100.01121.95
8.4.160.0130.00922.01
8.4.150.0070.00616.80
8.4.140.0140.01017.40
8.4.130.0080.00317.50
8.4.120.0130.00620.57
8.4.110.0110.00918.96
8.4.100.0090.01217.43
8.4.90.0130.00817.38
8.4.80.0100.00918.83
8.4.70.0120.00817.45
8.4.60.0380.00817.52
8.4.50.0340.01117.29
8.4.40.0420.00717.41
8.4.30.0350.01117.11
8.4.20.0360.00817.13
8.4.10.0380.01217.38
8.3.300.0090.01020.70
8.3.290.0110.00822.62
8.3.280.0110.01120.16
8.3.270.0080.01216.77
8.3.260.0130.00616.42
8.3.250.0040.00418.80
8.3.240.0120.00716.59
8.3.230.0130.00516.74
8.3.220.0110.00816.55
8.3.210.0030.00416.68
8.3.200.0120.00816.57
8.3.190.0340.01016.60
8.3.180.0390.00716.57
8.3.170.0400.01216.20
8.3.160.0370.00616.45
8.3.150.0360.01116.69
8.3.140.0280.00816.57
8.3.130.0360.01016.79
8.3.120.0330.01016.61
8.3.110.0340.01116.48
8.3.100.0300.00916.22
8.3.90.0370.00916.57
8.3.80.0380.00716.79
8.3.70.0370.00616.42
8.3.60.0430.01116.54
8.3.50.0380.00816.35
8.3.40.0410.00517.29
8.3.30.0290.00917.12
8.3.20.0320.01017.34
8.3.10.0220.00817.27
8.3.00.0260.00717.51
8.2.300.0110.00820.24
8.2.290.0100.00820.19
8.2.280.0100.00616.81
8.2.270.0300.01116.26
8.2.260.0280.00916.67
8.2.250.0290.01116.38
8.2.240.0300.01016.26
8.2.230.0340.00516.52
8.2.220.0300.00916.54
8.2.210.0330.00716.20
8.2.200.0380.00716.31
8.2.190.0340.00616.29
8.2.180.0360.00516.38
8.2.170.0390.00617.85
8.2.160.0280.00717.57
8.2.150.0260.01017.63
8.2.140.0310.01117.52
8.2.130.0330.00417.68
8.2.120.0210.00417.69
8.2.110.0330.01117.61
8.2.100.0320.00917.58
8.2.90.0310.00917.62
8.2.80.0320.00417.70
8.2.70.0330.00517.40
8.2.60.0340.00817.28
8.2.50.0390.00817.48
8.2.40.0290.00917.52
8.2.30.0350.00617.34
8.2.20.0280.00717.45
8.2.10.0210.00317.52
8.2.00.0300.00917.38
8.1.340.0100.01020.20

preferences:
60.77 ms | 840 KiB | 5 Q