3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { #[Test] public function foo() {} } class B extends A { public function foo() {} } var_dump((new ReflectionMethod('A', 'foo'))->getAttributes()); var_dump((new ReflectionMethod('B', 'foo'))->getAttributes());

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.20.0110.00920.08
8.5.10.0130.01016.45
8.5.00.0110.01019.80
8.4.170.0130.00923.69
8.4.160.0140.00821.45
8.4.150.0030.00014.05
8.4.140.0100.01117.56
8.4.130.0120.00817.80
8.4.120.0060.00220.45
8.4.110.0080.01122.37
8.4.100.0120.00817.45
8.4.90.0090.00317.75
8.4.80.0110.00918.31
8.4.70.0140.00419.32
8.4.60.0090.01118.32
8.4.50.0100.00722.49
8.4.40.0160.00317.46
8.4.30.0130.00618.59
8.4.20.0060.00319.82
8.4.10.0060.00319.31
8.3.300.0130.00820.81
8.3.290.0110.00820.87
8.3.280.0100.00920.60
8.3.270.0110.00916.66
8.3.260.0030.00516.64
8.3.250.0080.01218.55
8.3.240.0110.00816.36
8.3.230.0040.00416.39
8.3.220.0080.00518.97
8.3.210.0070.00716.41
8.3.200.0060.00316.34
8.3.190.0110.00517.17
8.3.180.0120.00816.38
8.3.170.0140.00318.73
8.3.160.0110.00716.78
8.3.150.0150.00316.87
8.3.140.0110.00717.10
8.3.130.0060.01018.29
8.3.120.0090.00020.47
8.3.110.0030.00516.53
8.3.100.0060.00318.18
8.3.90.0000.00818.29
8.3.80.0250.00730.84
8.3.70.0290.00430.84
8.3.60.0230.00630.84
8.3.50.0060.00330.84
8.3.40.0130.00830.84
8.3.30.0180.00430.84
8.3.20.0180.00930.84
8.3.10.0220.00030.84
8.3.00.0230.00330.84
8.2.300.0140.00818.00
8.2.290.0120.00720.57
8.2.280.0070.00119.93
8.2.270.0180.00417.14
8.2.260.0080.00018.15
8.2.250.0000.00719.21
8.2.240.0110.00716.62
8.2.230.0040.00720.94
8.2.220.0060.00324.06
8.2.210.0080.00026.77
8.2.200.0160.00830.84
8.2.190.0180.00730.84
8.2.180.0190.00330.84
8.2.170.0150.01130.84
8.2.160.0180.00630.84
8.2.150.0190.00430.84
8.2.140.0230.00530.84
8.2.130.0190.00530.84
8.2.120.0180.00530.84
8.2.110.0220.00330.84
8.2.100.0220.00330.84
8.2.90.0130.00930.84
8.2.80.0180.00430.84
8.2.70.0230.00030.84
8.2.60.0240.00330.84
8.2.50.0250.00030.84
8.2.40.0210.00530.84
8.2.30.0210.00930.84
8.2.20.0240.01030.84
8.2.10.0310.00830.84
8.2.00.0360.00630.84
8.1.340.0090.01117.45
8.1.330.0150.00518.14
8.1.320.0120.00816.04
8.1.310.0040.00416.49
8.1.300.0090.00918.01
8.1.290.0370.01130.84
8.1.280.0360.00830.84
8.1.270.0260.01030.84
8.1.260.0200.00730.84
8.1.250.0220.00730.84
8.1.240.0210.00030.84
8.1.230.0090.01130.84
8.1.220.0120.00830.84
8.1.210.0230.00030.84
8.1.200.0190.00430.84
8.1.190.0160.01230.84
8.1.180.0200.00430.84
8.1.170.0140.01030.84
8.1.160.0160.00830.84
8.1.150.0170.00730.84
8.1.140.0210.00330.84
8.1.130.0150.00530.84
8.1.120.0120.00730.84
8.1.110.0200.00730.84
8.1.100.0210.00530.84
8.1.90.0260.00430.84
8.1.80.0240.00830.84
8.1.70.0350.00330.84
8.1.60.0290.00630.84
8.1.50.0210.01630.84
8.1.40.0310.00930.84
8.1.30.0290.00330.84
8.1.20.0170.01330.84
8.1.10.0340.00330.84
8.1.00.0280.00630.84

preferences:
31.51 ms | 403 KiB | 5 Q