3v4l.org

run code in 300+ PHP versions simultaneously
<?php #[Attribute] class ParentAttribute { } class ParentClass { #[ParentAttribute] protected $foo; } #[Attribute] class ChildAttribute { } class ChildClass extends ParentClass { #[ChildAttribute] protected $foo; } $rp = new ReflectionProperty(ChildClass::class, "foo"); foreach ($rp->getAttributes() as $attribute) { print_r($attribute->getName()); }

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.0110.01119.90
8.4.150.0030.00014.05
8.4.140.0110.00917.37
8.4.130.0130.00718.49
8.4.120.0100.01020.52
8.4.110.0110.00920.62
8.4.100.0170.00318.69
8.4.90.0100.00920.72
8.4.80.0070.00418.90
8.4.70.0130.00718.83
8.4.60.0100.00818.94
8.4.50.0030.00618.44
8.4.40.0120.00919.42
8.4.30.0060.00320.34
8.4.20.0030.00718.82
8.4.10.0040.00417.66
8.3.280.0130.00718.38
8.3.270.0110.00816.70
8.3.260.0080.01116.63
8.3.250.0120.00718.71
8.3.240.0120.00816.36
8.3.230.0120.00716.93
8.3.220.0050.00319.05
8.3.210.0120.00316.84
8.3.200.0060.00316.51
8.3.190.0130.00516.88
8.3.180.0110.00817.03
8.3.170.0160.00320.86
8.3.160.0110.00818.38
8.3.150.0100.00016.57
8.3.140.0060.00317.38
8.3.130.0090.00018.44
8.3.120.0080.00020.95
8.3.110.0040.00420.94
8.3.100.0180.01133.04
8.3.90.0080.00026.77
8.3.80.0030.00719.36
8.3.70.0070.01418.43
8.3.60.0000.01616.63
8.3.50.0090.00916.36
8.3.40.0090.00918.51
8.3.30.0070.00718.64
8.3.20.0070.00024.18
8.3.10.0100.00623.35
8.3.00.0070.01121.29
8.2.290.0050.00520.57
8.2.280.0110.00818.61
8.2.270.0100.00616.36
8.2.260.0120.00616.81
8.2.250.0040.00416.70
8.2.240.0090.00018.91
8.2.230.0030.00722.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0090.00018.88
8.2.190.0090.00916.75
8.2.180.0180.00325.92
8.2.170.0090.00619.14
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0060.00721.82
8.2.130.0020.01022.28
8.2.120.0130.00421.34
8.2.110.0090.00519.67
8.2.100.0080.00618.45
8.2.90.0060.00418.18
8.2.80.0040.00719.10
8.2.70.0100.00318.30
8.2.60.0050.00718.59
8.2.50.0070.00518.46
8.2.40.0050.00519.49
8.2.30.0060.00518.82
8.2.20.0060.00918.57
8.2.10.0100.00518.03
8.2.00.0060.00918.39
8.1.330.0110.00822.02
8.1.320.0080.01117.71
8.1.310.0070.01117.88
8.1.300.0060.00318.39
8.1.290.0130.00824.95
8.1.280.0130.00725.92
8.1.270.0060.00322.71
8.1.260.0070.00623.54
8.1.250.0070.00624.09
8.1.240.0150.00419.69
8.1.230.0050.00519.32
8.1.220.0070.00718.51
8.1.210.0070.00418.50
8.1.200.0030.00918.17
8.1.190.0080.00218.15
8.1.180.0070.00218.29
8.1.170.0020.00618.61
8.1.160.0090.00319.22
8.1.150.0080.00618.52
8.1.140.0060.00517.82
8.1.130.0040.01018.32
8.1.120.0090.00417.86
8.1.110.0060.00718.19
8.1.100.0100.00217.83
8.1.90.0070.00517.88
8.1.80.0110.00618.16
8.1.70.0140.00218.16
8.1.60.0100.00918.34
8.1.50.0050.00818.20
8.1.40.0120.00417.91
8.1.30.0070.00718.40
8.1.20.0120.00318.04
8.1.10.0100.00718.08
8.1.00.0140.00618.18
8.0.300.0090.00318.63
8.0.290.0110.00417.39
8.0.280.0100.00518.02
8.0.270.0070.00417.23
8.0.260.0080.00517.39
8.0.250.0060.00317.59
8.0.240.0100.00417.40
8.0.230.0080.00417.50
8.0.220.0070.00417.52
8.0.210.0070.00717.50
8.0.200.0070.00317.57
8.0.190.0060.00417.52
8.0.180.0080.00117.54
8.0.170.0090.00717.52
8.0.160.0060.00617.55
8.0.150.0120.00717.38
8.0.140.0160.00717.35
8.0.130.0100.00617.48
8.0.120.0090.00517.38
8.0.110.0050.00417.44
8.0.100.0090.00417.45
8.0.90.0090.00618.74
8.0.80.0050.00417.45
8.0.70.0060.00817.51
8.0.60.0140.00617.44
8.0.50.0140.00617.42
8.0.30.0040.00917.56
8.0.20.0060.00417.55
8.0.10.0070.00717.68
8.0.00.0070.00418.69
7.4.330.0060.00614.76
7.4.320.0110.00717.02
7.4.300.0140.00317.02
7.4.290.0150.00217.09
7.4.280.0150.00217.00
7.4.270.0140.00317.18
7.4.260.0130.00417.16
7.4.250.0130.00417.17
7.4.240.0140.00317.11
7.4.230.0190.00416.97
7.4.220.0130.00317.11
7.4.210.0230.00517.08
7.4.200.0200.00717.09
7.4.190.0250.00117.21
7.4.180.0190.00717.09
7.4.160.0250.00117.15
7.4.150.0160.00717.17
7.4.140.0130.01117.02
7.4.130.0190.00517.07
7.4.120.0250.00217.02
7.4.110.0150.00717.03
7.4.100.0140.00816.96
7.4.90.0210.00517.09
7.4.80.0180.00316.96
7.4.70.0120.00717.13
7.4.60.0150.00217.07
7.4.50.0100.00516.97
7.4.40.0130.00217.07
7.4.30.0140.00217.09
7.4.20.0090.00617.08
7.4.10.0130.00617.00
7.4.00.0180.00317.03
7.3.330.0180.00316.97
7.3.320.0160.00316.97
7.3.310.0140.00816.99
7.3.300.0140.00717.20
7.3.290.0120.00416.86
7.3.280.0130.00316.86
7.3.270.0110.00616.95
7.3.260.0130.00216.82
7.3.250.0100.00516.81
7.3.240.0140.00216.86
7.3.230.0170.00217.06
7.3.220.0120.00716.71
7.3.210.0190.00316.88
7.3.200.0190.00116.91
7.3.190.0170.00416.92
7.3.180.0150.00316.91
7.3.170.0100.00517.30
7.3.160.0190.00416.91
7.3.150.0110.00916.80
7.3.140.0110.00616.84
7.3.130.0140.00416.89
7.3.120.0130.00516.81
7.3.110.0160.00217.24
7.3.100.0140.00316.82
7.3.90.0140.00216.98
7.3.80.0120.00416.93
7.3.70.0160.00316.81
7.3.60.0130.00216.92
7.3.50.0120.00317.03
7.3.40.0140.00516.90
7.3.30.0160.00516.93
7.3.20.0140.00318.17
7.3.10.0120.00518.11
7.3.00.0220.00318.17

preferences:
41.2 ms | 403 KiB | 5 Q