3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[\Attribute(\Attribute::TARGET_PROPERTY)] final class AutowireProperty {} class A { #[AutowireProperty] protected string $foo; } class B extends A { } $fooA = new \ReflectionProperty(A::class, 'foo'); $fooB = new \ReflectionProperty(B::class, 'foo'); echo "Class A: "; var_export($fooA->getAttributes()[0]->getName()); echo "\n"; echo "Class B: "; var_export($fooB->getAttributes()[0]->getName()); echo "\n";

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.00.0130.01020.18
8.4.150.0010.00114.05
8.4.140.0110.01017.56
8.4.130.0120.00818.80
8.4.120.0100.01119.70
8.4.110.0050.00424.03
8.4.100.0140.00518.00
8.4.90.0110.00720.77
8.4.80.0060.00618.98
8.4.70.0090.01118.89
8.4.60.0090.01020.29
8.4.50.0040.00720.60
8.4.40.0100.01017.80
8.4.30.0160.00324.11
8.4.20.0170.00319.76
8.4.10.0060.00319.19
8.3.280.0100.01118.38
8.3.270.0170.00316.32
8.3.260.0110.00816.59
8.3.250.0080.01016.30
8.3.240.0080.01116.36
8.3.230.0050.00316.51
8.3.220.0130.00519.11
8.3.210.0120.00416.40
8.3.200.0070.00216.73
8.3.190.0100.00817.07
8.3.180.0080.00918.92
8.3.170.0070.01116.95
8.3.160.0090.00918.44
8.3.150.0090.00917.27
8.3.140.0140.00416.55
8.3.130.0070.01516.45
8.3.120.0390.00316.19
8.3.110.0290.01216.39
8.3.100.0400.00316.49
8.3.90.0300.01316.20
8.3.80.0240.00316.34
8.3.70.0290.01015.93
8.3.60.0230.01416.32
8.3.50.0260.00416.28
8.3.40.0270.01017.20
8.3.30.0290.01317.52
8.3.20.0310.00717.13
8.3.10.0260.01117.32
8.3.00.0180.00717.39
8.2.290.0050.00316.74
8.2.280.0110.00818.25
8.2.270.0050.00516.80
8.2.260.0100.00716.94
8.2.250.0060.00318.57
8.2.240.0320.00716.38
8.2.230.0300.00716.28
8.2.220.0280.00816.35
8.2.210.0210.01816.68
8.2.200.0290.01116.20
8.2.190.0330.00716.27
8.2.180.0340.00716.35
8.2.170.0280.01417.66
8.2.160.0390.00617.42
8.2.150.0280.00017.55
8.2.140.0160.00417.58
8.2.130.0330.00417.41
8.2.120.0320.01317.31
8.2.110.0230.01517.59
8.2.100.0320.01017.65
8.2.90.0320.00917.50
8.2.80.0320.01017.34
8.2.70.0330.00717.35
8.2.60.0380.00317.48
8.2.50.0430.00717.34
8.2.40.0280.00817.26
8.2.30.0130.00817.13
8.2.20.0180.00017.21
8.2.10.0280.00817.28
8.2.00.0300.01117.27
8.1.330.0130.00715.90
8.1.320.0110.00818.06
8.1.310.0040.01518.35
8.1.300.0280.01215.77
8.1.290.0340.00616.21
8.1.280.0290.01115.96
8.1.270.0350.00717.09
8.1.260.0300.01317.09
8.1.250.0360.00617.41
8.1.240.0240.01217.15
8.1.230.0330.00717.38
8.1.220.0380.00317.41
8.1.210.0240.01716.93
8.1.200.0290.00717.05
8.1.190.0270.00717.12
8.1.180.0250.01116.99
8.1.170.0270.01017.04
8.1.160.0300.00717.18
8.1.150.0300.00317.27
8.1.140.0240.01216.92
8.1.130.0250.01217.18
8.1.120.0290.00717.23
8.1.110.0260.00717.11
8.1.100.0250.01117.13
8.1.90.0220.00717.05
8.1.80.0200.01017.29
8.1.70.0310.01017.17
8.1.60.0330.01116.97
8.1.50.0330.01117.12
8.1.40.0380.01017.08
8.1.30.0360.00617.45
8.1.20.0230.00417.34
8.1.10.0130.00617.28
8.1.00.0150.00417.39

preferences:
36.11 ms | 403 KiB | 5 Q