3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Service { } #[Attribute] class Inject{} class InjectAttributePresenter { #[Inject] public Service $service; } $reflector = new ReflectionProperty(InjectAttributePresenter::class, 'service'); var_dump($reflector->getAttributes(Inject::class));

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.0050.00420.83
8.4.110.0070.00319.09
8.4.100.0030.00917.47
8.4.90.0150.00617.73
8.4.80.0110.00717.71
8.4.70.0050.00317.69
8.4.60.0160.00718.80
8.4.50.0100.01218.53
8.4.40.0110.00718.50
8.4.30.0100.01022.60
8.4.20.0170.00322.46
8.4.10.0060.00323.88
8.3.250.0090.01018.82
8.3.240.0060.00216.36
8.3.230.0130.00716.75
8.3.220.0110.00717.21
8.3.210.0090.00918.40
8.3.200.0050.00416.36
8.3.190.0070.00617.05
8.3.180.0110.00816.34
8.3.170.0070.01116.88
8.3.160.0150.00318.30
8.3.150.0040.01518.77
8.3.140.0050.00316.64
8.3.130.0000.00818.23
8.3.120.0160.00620.70
8.3.110.0130.00620.94
8.3.100.0160.00324.06
8.3.90.0110.00426.77
8.3.80.0060.01217.97
8.3.70.0070.01518.18
8.3.60.0100.01018.23
8.3.50.0120.00916.48
8.3.40.0120.00621.95
8.3.30.0150.00018.84
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00526.16
8.2.290.0070.00319.12
8.2.280.0060.00822.19
8.2.270.0130.00617.13
8.2.260.0080.00018.78
8.2.250.0090.01216.73
8.2.240.0100.00617.36
8.2.230.0070.01122.58
8.2.220.0100.00737.54
8.2.210.0080.00026.77
8.2.200.0030.00616.50
8.2.190.0160.00016.58
8.2.180.0120.00318.01
8.2.170.0030.01018.75
8.2.160.0000.01322.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0160.00322.30
8.2.110.0030.00622.25
8.2.100.0060.00617.78
8.2.90.0210.00417.30
8.2.80.0250.00417.25
8.2.70.0240.00817.31
8.2.60.0280.00317.19
8.2.50.0260.00517.43
8.2.40.0210.00717.31
8.2.30.0200.00817.13
8.2.20.0190.00218.24
8.2.10.0210.00717.31
8.2.00.0230.00717.00
8.1.330.0050.00416.20
8.1.320.0040.00416.24
8.1.310.0040.00416.77
8.1.300.0100.01016.24
8.1.290.0070.00430.84
8.1.280.0140.00025.92
8.1.270.0070.00724.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.76
8.1.230.0040.00721.03
8.1.220.0230.00617.06
8.1.210.0230.00516.92
8.1.200.0220.00617.00
8.1.190.0250.00317.05
8.1.180.0280.00016.99
8.1.170.0210.00616.98
8.1.160.0270.00116.92
8.1.150.0240.00417.00
8.1.140.0240.00316.94
8.1.130.0220.00617.11
8.1.120.0230.00416.99
8.1.110.0190.00717.30
8.1.100.0200.00817.18
8.1.90.0210.00517.18
8.1.80.0240.00317.24
8.1.70.0200.00617.05
8.1.60.0200.00717.13
8.1.50.0240.00517.19
8.1.40.0270.00317.23
8.1.30.0240.00617.23
8.1.20.0250.00317.25
8.1.10.0200.01017.13
8.1.00.0250.00417.06
8.0.300.0260.00516.49
8.0.290.0220.00616.44
8.0.280.0220.00716.56
8.0.270.0260.00216.36
8.0.260.0240.00516.49
8.0.250.0260.00316.42
8.0.240.0220.00616.49
8.0.230.0240.00316.42
8.0.220.0270.00316.38
8.0.210.0220.00516.44
8.0.200.0230.00716.37
8.0.190.0210.00816.42
8.0.180.0230.00616.30
8.0.170.0240.00616.49
8.0.160.0220.00616.36
8.0.150.0220.00416.49
8.0.140.0260.00216.43
8.0.130.0240.00316.44
8.0.120.0290.00216.50
8.0.110.0240.00316.44
8.0.100.0260.00316.48
8.0.90.0240.00316.49
8.0.80.0200.00916.41
8.0.70.0210.00616.23
8.0.60.0290.00216.31
8.0.50.0220.00616.29
8.0.30.0280.00116.31
8.0.20.0230.00716.49
8.0.10.0220.00316.49

preferences:
26.57 ms | 403 KiB | 5 Q