3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { } class B implements I { } class C extends B { function foo() {} } $rx = new \ReflectionClass('X'); $rc = new \ReflectionClass('C'); $rm = $rc->getMethod('foo'); $drc = $rm->getDeclaringClass(); var_export($rc->getName() === $drc->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.3.40.0140.00418.97
8.3.30.0110.00418.59
8.3.20.0030.00620.30
8.3.10.0030.00523.50
8.3.00.0000.00821.69
8.2.170.0100.01022.96
8.2.160.0130.00319.26
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0000.00821.00
8.2.120.0060.00326.35
8.2.110.0070.00322.28
8.2.100.0090.00317.93
8.2.90.0000.00719.28
8.2.80.0080.00018.04
8.2.70.0040.00417.47
8.2.60.0030.00617.91
8.2.50.0000.00818.07
8.2.40.0040.00422.27
8.2.30.0000.00719.34
8.2.20.0040.00417.84
8.2.10.0000.00818.05
8.2.00.0070.00018.06
8.1.270.0030.00623.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.00822.18
8.1.230.0140.00018.81
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0070.00317.23
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00720.61
8.1.150.0000.00720.61
8.1.140.0000.00919.50
8.1.130.0030.00317.63
8.1.120.0000.00717.30
8.1.110.0040.00417.38
8.1.100.0040.00417.27
8.1.90.0040.00417.25
8.1.80.0040.00417.33
8.1.70.0000.00717.29
8.1.60.0000.00817.55
8.1.50.0030.00517.50
8.1.40.0040.00417.44
8.1.30.0040.00417.63
8.1.20.0000.00917.53
8.1.10.0050.00317.40
8.1.00.0000.00717.47
8.0.300.0000.00818.77
8.0.290.0020.00516.75
8.0.280.0000.00718.42
8.0.270.0030.00317.23
8.0.260.0060.00017.18
8.0.250.0050.00316.92
8.0.240.0030.00316.98
8.0.230.0000.00716.99
8.0.220.0030.00616.96
8.0.210.0040.00416.96
8.0.200.0060.00017.00
8.0.190.0040.00417.05
8.0.180.0020.00516.95
8.0.170.0000.00716.86
8.0.160.0050.00216.88
8.0.150.0000.00816.88
8.0.140.0000.00716.87
8.0.130.0000.00613.37
8.0.120.0050.00316.82
8.0.110.0020.00516.97
8.0.100.0050.00316.88
8.0.90.0000.00716.89
8.0.80.0090.00616.94
8.0.70.0000.00816.91
8.0.60.0000.00716.89
8.0.50.0000.00716.95
8.0.30.0100.00816.94
8.0.20.0110.00817.40
8.0.10.0070.00016.81
8.0.00.0100.00816.78
7.4.330.0000.00516.84
7.4.320.0000.00616.54
7.4.300.0080.00016.58
7.4.290.0070.00016.53
7.4.280.0040.00416.44
7.4.270.0000.00816.30
7.4.260.0030.00516.53
7.4.250.0050.00316.30
7.4.240.0040.00416.49
7.4.230.0050.00316.42
7.4.220.0160.00416.46
7.4.210.0060.00916.38
7.4.200.0000.00716.56
7.4.160.0070.00716.46
7.4.150.0060.01217.40
7.4.140.0100.01217.86
7.4.130.0120.01016.48
7.4.120.0110.01116.51
7.4.110.0000.01916.70
7.4.100.0100.01016.61
7.4.90.0070.01316.43
7.4.80.0140.00719.39
7.4.70.0090.00916.59
7.4.60.0060.00916.60
7.4.50.0040.01116.09
7.4.40.0120.00616.70
7.4.30.0130.01016.53
7.4.00.0030.01315.04
7.3.330.0020.00213.32
7.3.320.0000.00613.31
7.3.310.0030.00316.20
7.3.300.0000.00716.20
7.3.290.0090.01116.29
7.3.280.0080.01116.29
7.3.270.0070.01017.40
7.3.260.0090.00916.32
7.3.240.0100.00916.48
7.3.230.0030.01716.52
7.3.210.0030.01416.37
7.3.200.0190.00019.39
7.3.190.0060.01216.35
7.3.180.0030.01516.50
7.3.170.0090.00716.59
7.3.160.0110.00916.46
7.3.120.0110.00714.91
7.3.110.0030.01014.58
7.3.100.0070.00714.63
7.3.90.0030.01014.57
7.3.80.0000.01414.95
7.3.70.0110.00414.82
7.3.60.0080.00414.86
7.3.50.0000.01514.88
7.3.40.0080.00414.67
7.3.30.0070.00714.83
7.3.20.0110.00716.54
7.3.10.0090.01016.41
7.3.00.0060.00916.43
7.2.330.0070.01016.25
7.2.320.0150.00616.23
7.2.310.0030.01316.75
7.2.300.0080.00816.60
7.2.290.0060.01116.32
7.2.240.0060.01314.80
7.2.230.0000.01914.72
7.2.220.0110.00715.14
7.2.210.0070.00714.95
7.2.200.0040.01115.15
7.2.190.0040.01114.89
7.2.180.0070.00714.80
7.2.170.0100.00614.91
7.2.160.0130.00315.03
7.2.150.0070.01117.02
7.2.140.0100.01016.47
7.2.130.0040.01116.82
7.2.120.0080.00416.42
7.2.110.0130.00316.77
7.2.100.0030.01417.00
7.2.90.0120.00316.70
7.2.80.0090.00616.80
7.2.70.0070.00316.64
7.2.60.0090.00316.52
7.2.50.0030.01016.96
7.2.40.0130.00016.98
7.2.30.0060.00616.90
7.2.20.0040.00816.62
7.2.10.0100.00317.03
7.2.00.0050.00717.95
7.1.330.0090.00615.48
7.1.320.0100.00715.75
7.1.310.0000.01415.67
7.1.300.0040.01115.51
7.1.290.0030.01215.66
7.1.280.0040.00415.70
7.1.270.0040.00815.36
7.1.260.0070.00315.53
7.1.250.0090.00615.48
7.1.200.0000.01115.66
7.1.100.0040.00817.78
7.1.70.0040.00416.96
7.1.60.0110.01419.28
7.1.50.0060.00616.67
7.1.00.0030.07722.36
7.0.200.0000.00816.78
7.0.60.0070.07721.81
7.0.50.0170.07317.87
7.0.40.0130.06320.02
7.0.30.0230.04320.23
7.0.20.0400.06720.30
7.0.10.0170.03320.15
7.0.00.0170.07320.22
5.6.280.0000.03320.86
5.6.210.0100.06320.73
5.6.200.0000.08718.29
5.6.190.0130.07720.46
5.6.180.0600.06320.52
5.6.170.0270.07320.40
5.6.160.0070.08720.48
5.6.150.0100.04318.27
5.6.140.0030.04318.14
5.6.130.0030.05018.14
5.6.120.0130.07721.15
5.6.110.0070.03721.05
5.6.100.0030.08020.94
5.6.90.0070.07020.88
5.6.80.0070.07720.52
5.5.350.2730.02720.43
5.5.340.0000.04017.98
5.5.330.0100.07320.29
5.5.320.0570.06020.36
5.5.310.0170.04720.41
5.5.300.0070.03317.97
5.5.290.0030.04017.95
5.5.280.0270.06320.88
5.5.270.0100.05020.80
5.5.260.0170.07320.77
5.5.250.0130.07720.62
5.5.240.0300.06320.29

preferences:
38.52 ms | 400 KiB | 5 Q