3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Constraint {} #[Attribute(Attribute::TARGET_PROPERTY|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER)] class NotNull implements Constraint {} class App { #[NotNull] public function test(): void {} } foreach((new ReflectionMethod(App::class, 'test'))->getAttributes() as $attribute) if((new ReflectionClass($attribute->getName()))->implementsInterface(Constraint::class)) echo 'Success';

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.0120.00917.70
8.4.110.0140.00719.23
8.4.100.0130.00717.64
8.4.90.0120.00720.77
8.4.80.0100.01019.03
8.4.70.0140.00718.90
8.4.60.0100.00418.80
8.4.50.0130.00818.54
8.4.40.0070.01317.59
8.4.30.0030.00818.49
8.4.20.0110.00417.85
8.4.10.0110.00425.80
8.3.250.0100.01016.82
8.3.240.0120.00516.82
8.3.230.0100.00916.60
8.3.220.0120.00618.92
8.3.210.0080.00716.66
8.3.200.0040.00416.37
8.3.190.0110.01017.27
8.3.180.0060.01418.57
8.3.170.0120.00620.54
8.3.160.0040.01517.26
8.3.150.0140.00416.84
8.3.140.0110.00716.54
8.3.130.0000.00818.33
8.3.120.0040.01518.66
8.3.110.0030.00520.94
8.3.100.0040.00424.06
8.3.90.0110.00426.77
8.3.80.0030.00616.50
8.3.70.0070.00718.53
8.3.60.0040.01118.31
8.3.50.0070.01023.54
8.3.40.0070.01518.67
8.3.30.0130.00618.49
8.3.20.0090.00024.18
8.3.10.0050.00324.66
8.3.00.0090.00026.16
8.2.290.0120.00716.74
8.2.280.0130.00618.50
8.2.270.0040.00417.32
8.2.260.0040.00416.46
8.2.250.0070.00716.38
8.2.240.0090.00017.14
8.2.230.0050.00522.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.25
8.2.190.0000.01916.63
8.2.180.0100.01025.92
8.2.170.0140.00018.87
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0020.00524.66
8.2.130.0000.00826.16
8.2.120.0080.00019.82
8.2.110.0110.00821.55
8.2.100.0150.00718.26
8.2.90.0150.00618.25
8.2.80.0060.00418.81
8.2.70.0030.00618.07
8.2.60.0040.01118.21
8.2.50.0070.00418.38
8.2.40.0100.00118.40
8.2.30.0060.00918.31
8.2.20.0060.00418.29
8.2.10.0050.00519.69
8.2.00.0060.00619.03
8.1.330.0060.00416.20
8.1.320.0130.00615.86
8.1.310.0140.00318.13
8.1.300.0100.01017.90
8.1.290.0030.00618.88
8.1.280.0030.01325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00320.65
8.1.230.0090.00617.97
8.1.220.0050.00918.00
8.1.210.0060.00319.33
8.1.200.0060.00417.83
8.1.190.0080.00617.63
8.1.180.0040.00618.26
8.1.170.0070.00318.54
8.1.160.0070.00418.74
8.1.150.0080.00518.64
8.1.140.0120.00318.64
8.1.130.0040.00619.14
8.1.120.0090.00617.92
8.1.110.0000.00917.89
8.1.100.0140.00617.87
8.1.90.0110.00317.97
8.1.80.0090.00218.80
8.1.70.0090.00519.00
8.1.60.0040.00617.98
8.1.50.0080.00417.91
8.1.40.0030.00918.12
8.1.30.0040.00618.01
8.1.20.0110.00818.08
8.1.10.0050.00518.09
8.1.00.0070.01018.02
8.0.300.0060.00918.29
8.0.290.0020.00617.35
8.0.280.0080.00318.14
8.0.270.0080.00517.90
8.0.260.0090.00318.22
8.0.250.0060.00617.45
8.0.240.0160.00217.43
8.0.230.0050.00317.63
8.0.220.0050.00317.27
8.0.210.0060.00517.33
8.0.200.0020.01017.40
8.0.190.0060.00217.47
8.0.180.0120.00817.36
8.0.170.0070.00517.36
8.0.160.0050.00417.43
8.0.150.0030.00517.22
8.0.140.0030.00817.33
8.0.130.0110.00015.63
8.0.120.0050.00417.30
8.0.110.0040.00417.35
8.0.100.0080.00317.27
8.0.90.0100.00417.25
8.0.80.0100.00717.23
8.0.70.0070.00217.26
8.0.60.0080.00117.38
8.0.50.0020.00717.32
8.0.30.0090.00717.65
8.0.20.0130.00617.58
8.0.10.0060.01017.73
8.0.00.0070.01017.88
7.4.330.0030.00514.85
7.4.320.0060.00416.90
7.4.300.0050.00316.87
7.4.290.0000.00816.96
7.4.280.0040.00517.03
7.4.270.0050.00316.94
7.4.260.0060.00315.29
7.4.250.0050.00316.96
7.4.240.0030.00516.78
7.4.230.0030.00516.77
7.4.220.0060.00116.80
7.4.210.0070.00616.85
7.4.200.0050.00416.86
7.4.190.0100.00317.53
7.4.180.0090.00017.50
7.4.160.0080.00017.63
7.4.150.0160.00017.42
7.4.140.0080.00917.41
7.4.130.0060.00817.39
7.4.120.0050.01517.34
7.4.110.0140.00917.37
7.4.100.0210.00517.38
7.4.90.0200.00517.28
7.4.80.0150.01017.38
7.4.70.0180.00717.41
7.4.60.0100.00917.42
7.4.50.0220.00317.36
7.4.40.0200.00917.41
7.4.30.0220.00717.41
7.4.20.0210.00817.29
7.4.10.0200.00917.32
7.4.00.0100.00717.41
7.3.330.0070.00616.71
7.3.320.0150.00415.09
7.3.310.0090.00416.74
7.3.300.0080.00416.81
7.3.290.0090.00716.52
7.3.280.0080.01117.05
7.3.270.0100.00717.27
7.3.260.0110.00617.27
7.3.250.0230.00317.26
7.3.240.0190.00817.25
7.3.230.0170.01017.34
7.3.220.0200.00817.29
7.3.210.0240.00517.27
7.3.200.0150.00917.24
7.3.190.0140.00717.34
7.3.180.0210.00817.36
7.3.170.0240.00417.34
7.3.160.0180.00817.38
7.3.150.0180.00717.30
7.3.140.0170.00717.29
7.3.130.0190.00617.33
7.3.120.0190.00917.27
7.3.110.0150.00817.21
7.3.100.0210.00617.27
7.3.90.0170.00917.39
7.3.80.0080.01317.31
7.3.70.0120.00717.42
7.3.60.0140.00317.37
7.3.50.0210.00717.42
7.3.40.0160.01217.34
7.3.30.0160.01217.37
7.3.20.0260.00618.23
7.3.10.0190.01318.26
7.3.00.0090.01218.22

preferences:
28.47 ms | 403 KiB | 5 Q