3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[Attribute(Attribute::TARGET_METHOD)] class A { } class B { #[A] public function m() { } } $a = new B(); $c = [$a, 'm']; $r = new ReflectionFunction($c(...)); var_dump($r->getAttributes()[0]->newInstance());

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.4.120.0140.00720.81
8.4.110.0110.00622.46
8.4.100.0150.00617.48
8.4.90.0120.00918.87
8.4.80.0050.00517.64
8.4.70.0120.00917.67
8.4.60.0070.00218.95
8.4.50.0120.00820.49
8.4.40.0120.00419.52
8.4.30.0040.00420.58
8.4.20.0140.00719.45
8.4.10.0090.00622.24
8.3.250.0100.00918.65
8.3.240.0120.00716.54
8.3.230.0110.00816.55
8.3.220.0100.00717.01
8.3.210.0120.00516.47
8.3.200.0060.00316.56
8.3.190.0100.00817.09
8.3.180.0130.00518.46
8.3.170.0150.00317.24
8.3.160.0060.01216.59
8.3.150.0090.00620.84
8.3.140.0070.00318.82
8.3.130.0070.01118.35
8.3.120.0030.00618.95
8.3.110.0060.00322.58
8.3.100.0040.00422.58
8.3.90.0060.00322.58
8.3.50.0030.00622.58
8.2.290.0060.00322.12
8.2.280.0060.00218.65
8.2.270.0160.00317.22
8.2.260.0000.00816.65
8.2.250.0060.01016.66
8.2.240.0130.00617.14
8.2.230.0090.00022.58
8.2.220.0150.00322.58
8.2.210.0050.00322.58
8.1.330.0080.00922.19
8.1.320.0120.00716.14
8.1.310.0070.01016.82
8.1.300.0040.00418.61
8.1.80.0040.00917.41
8.1.70.0120.00617.39
8.1.60.0070.00617.62
8.1.50.0100.00917.38
8.1.40.0130.00617.45
8.1.30.0170.00417.55
8.1.20.0130.00917.53
8.1.10.0170.00517.58
8.1.00.0160.00517.48
8.0.210.0050.00716.89
8.0.200.0180.00016.88
8.0.190.0140.00216.79
8.0.180.0120.00616.76
8.0.170.0100.00716.75
8.0.160.0140.00416.69
8.0.150.0080.00816.79
8.0.140.0140.00316.71
8.0.130.0120.00516.79
8.0.120.0140.00316.80
8.0.110.0050.01116.78
8.0.100.0100.00816.82
8.0.90.0130.00216.81
8.0.80.0120.00416.82
8.0.70.0110.00616.82
8.0.60.0110.00516.87
8.0.50.0040.01116.78
8.0.30.0120.00216.80
8.0.20.0120.00316.77
8.0.10.0100.00716.86
7.4.300.0000.00816.39
7.4.290.0140.00316.43
7.4.280.0100.00716.40
7.4.270.0160.00316.36
7.4.260.0150.00016.31
7.4.250.0050.01116.42
7.4.240.0060.00316.32
7.4.230.0100.00016.36
7.4.220.0100.00316.29
7.4.210.0150.00016.41
7.4.200.0040.01216.31
7.4.190.0110.00416.36
7.4.180.0110.00016.38
7.4.160.0100.00216.38
7.4.150.0050.01016.42
7.4.140.0080.00816.21
7.4.130.0100.00516.27
7.4.120.0100.00616.05
7.4.110.0060.00316.11
7.4.100.0030.01016.48
7.4.90.0110.00416.23
7.4.80.0050.00916.11
7.4.70.0070.01016.31
7.4.60.0130.00316.20
7.4.50.0060.00716.13
7.4.40.0030.01016.28
7.4.30.0070.00616.05
7.4.20.0040.00716.11
7.4.10.0050.00916.23
7.4.00.0070.00716.25

preferences:
25.84 ms | 403 KiB | 5 Q