3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing {} interface Foo { public function bar($baz) : Thing; } interface Bar extends Foo { public function bar($baz) : Thing; } final class Baz implements Bar { public function bar($baz) : Thing { return new Thing; } } var_dump((new ReflectionClass(Foo::class))->getMethod('bar')->getDeclaringClass()->getName()); var_dump((new ReflectionClass(Bar::class))->getMethod('bar')->getDeclaringClass()->getName()); var_dump((new ReflectionClass(Baz::class))->getMethod('bar')->getDeclaringClass()->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.4.120.0120.00824.30
8.4.110.0100.00720.51
8.4.100.0100.01120.45
8.4.90.0090.00818.91
8.4.80.0080.00820.34
8.4.70.0050.00618.02
8.4.60.0130.00818.59
8.4.50.0130.00819.16
8.4.40.0130.00719.47
8.4.30.0040.01420.67
8.4.20.0070.01419.48
8.4.10.0070.01017.48
8.3.250.0090.00918.88
8.3.240.0130.00717.36
8.3.230.0040.00616.70
8.3.220.0060.00218.85
8.3.210.0100.00618.54
8.3.200.0040.00516.39
8.3.190.0110.00717.09
8.3.180.0090.00716.48
8.3.170.0120.00619.09
8.3.160.0090.00918.39
8.3.150.0140.00420.93
8.3.140.0120.00616.85
8.3.130.0040.01517.18
8.3.120.0060.00318.96
8.3.110.0080.00018.47
8.3.100.0060.00316.63
8.3.90.0040.00426.77
8.3.80.0030.00618.31
8.3.70.0040.01916.63
8.3.60.0070.01416.50
8.3.50.0100.01021.14
8.3.40.0110.00718.56
8.3.30.0110.00318.77
8.3.20.0040.00420.12
8.3.10.0070.00020.30
8.3.00.0080.00023.65
8.2.290.0070.01120.24
8.2.280.0050.00318.36
8.2.270.0100.01016.91
8.2.260.0080.00018.33
8.2.250.0090.00016.37
8.2.240.0060.01320.80
8.2.230.0060.00320.94
8.2.220.0140.00324.06
8.2.210.0110.00726.77
8.2.200.0030.00618.29
8.2.190.0120.00616.58
8.2.180.0210.00018.16
8.2.170.0040.01822.96
8.2.160.0070.00722.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.88
8.2.110.0060.00320.99
8.2.100.0000.01117.84
8.2.90.0050.00319.13
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0030.00617.38
8.2.40.0050.00319.36
8.2.30.0000.00719.13
8.2.20.0040.00418.00
8.2.10.0000.00717.91
8.2.00.0030.00518.12
8.1.330.0110.00821.98
8.1.320.0150.00616.30
8.1.310.0030.00816.81
8.1.300.0080.00017.79
8.1.290.0070.00330.84
8.1.280.0110.00425.92
8.1.270.0030.00522.09
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00522.21
8.1.230.0030.00818.84
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0060.00317.10
8.1.180.0050.00318.10
8.1.170.0000.00917.62
8.1.160.0040.00418.73
8.1.150.0000.00720.27
8.1.140.0040.00419.58
8.1.130.0030.00318.83
8.1.120.0040.00417.44
8.1.110.0040.00417.35
8.1.100.0040.00417.28
8.1.90.0070.00017.32
8.1.80.0040.00417.41
8.1.70.0000.00717.38
8.1.60.0000.00717.48
8.1.50.0060.00317.42
8.1.40.0080.00017.42
8.1.30.0000.00817.46
8.1.20.0070.00017.67
8.1.10.0000.00817.38
8.1.00.0000.01017.38
8.0.300.0040.00420.31
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0000.00717.21
8.0.260.0030.00317.25
8.0.250.0000.00716.95
8.0.240.0040.00416.84
8.0.230.0040.00416.85
8.0.220.0000.00716.81
8.0.210.0000.00716.76
8.0.200.0030.00316.85
8.0.190.0030.00616.90
8.0.180.0000.00716.76
8.0.170.0000.00816.86
8.0.160.0000.00716.85
8.0.150.0020.00516.83
8.0.140.0000.00716.77
8.0.130.0000.00813.21
8.0.120.0050.00216.83
8.0.110.0000.00816.85
8.0.100.0000.00716.63
8.0.90.0000.00716.71
8.0.80.0100.00716.77
8.0.70.0050.00316.77
8.0.60.0000.00716.66
8.0.50.0030.00516.85
8.0.30.0050.01217.04
8.0.20.0100.01117.40
8.0.10.0000.00816.87
8.0.00.0070.01016.63
7.4.330.0040.00015.55
7.4.320.0000.00616.43
7.4.300.0030.00316.52
7.4.290.0000.00716.54
7.4.280.0080.00016.45
7.4.270.0050.00316.52
7.4.260.0070.00316.55
7.4.250.0000.00716.41
7.4.240.0040.00416.44
7.4.230.0000.00816.61
7.4.220.0070.01316.55
7.4.210.0110.00316.39
7.4.200.0000.00716.42
7.4.160.0130.00316.48
7.4.150.0060.01817.40
7.4.140.0160.00717.86
7.4.130.0070.01116.49
7.4.120.0090.01116.40
7.4.110.0120.00616.54
7.4.100.0070.01016.49
7.4.90.0190.00016.47
7.4.80.0120.00819.39
7.4.70.0000.01616.58
7.4.60.0060.01316.36
7.4.50.0080.00616.02
7.4.40.0170.00016.51
7.4.30.0090.00616.27
7.4.10.0110.00616.24
7.4.00.0060.01215.73
7.3.330.0050.00012.97
7.3.320.0050.00013.17
7.3.310.0030.00316.20
7.3.300.0000.00716.10
7.3.290.0090.00516.18
7.3.280.0090.01016.17
7.3.270.0120.00617.40
7.3.260.0120.00816.37
7.3.250.0090.01316.40
7.3.240.0090.01116.32
7.3.230.0140.00316.39
7.3.210.0120.00616.37
7.3.200.0150.00016.23
7.3.190.0100.01016.18
7.3.180.0070.01016.39
7.3.170.0030.01816.28
7.3.160.0090.00616.28
7.3.130.0060.01316.41
7.3.120.0050.01215.57
7.3.110.0070.01015.63
7.3.100.0110.00515.50
7.3.90.0020.01115.45
7.3.80.0000.01215.47
7.3.70.0070.00615.38
7.3.60.0030.00615.43
7.3.50.0060.01015.32
7.3.40.0070.00815.48
7.3.30.0060.01115.41
7.3.20.0070.00717.30
7.3.10.0040.01017.02
7.3.00.0060.00916.94
7.2.330.0090.00916.52
7.2.320.0100.00716.29
7.2.310.0060.00916.29
7.2.300.0040.01316.67
7.2.290.0160.00716.25
7.2.260.0070.01416.35
7.2.250.0120.00916.55
7.2.240.0070.01115.80
7.2.230.0060.00615.49
7.2.220.0070.00315.51
7.2.210.0080.00715.58
7.2.200.0020.00815.53
7.2.190.0080.00615.78
7.2.180.0100.00415.75
7.2.170.0100.00315.62
7.2.160.0050.00815.74
7.2.150.0070.01017.66
7.2.140.0060.00917.49
7.2.130.0090.00717.19
7.2.120.0060.00917.07
7.2.110.0060.00817.04
7.2.100.0050.00917.20
7.2.90.0070.00817.14
7.2.80.0080.00617.05
7.2.70.0060.00917.14
7.2.60.0060.00817.09
7.2.50.0060.00817.19
7.2.40.0030.00916.98
7.2.30.0050.00917.18
7.2.20.0060.01017.00
7.2.10.0060.00917.10
7.2.00.0030.01317.09
7.1.330.0050.01016.45
7.1.320.0090.00516.44
7.1.310.0060.00616.50
7.1.300.0060.00616.54
7.1.290.0060.01016.29
7.1.280.0070.00816.51
7.1.270.0070.00416.48
7.1.260.0070.00816.59
7.1.250.0080.00516.08
7.1.240.0100.00317.18
7.1.230.0000.01517.09
7.1.220.0130.00317.17
7.1.210.0100.00317.13
7.1.200.0030.00716.36
7.1.190.0030.01317.27
7.1.180.0030.01017.09
7.1.170.0030.01017.17
7.1.160.0000.01217.20
7.1.150.0030.01317.17
7.1.140.0060.00317.16
7.1.130.0070.00717.22
7.1.120.0050.00617.18
7.1.110.0070.00717.11
7.1.100.0070.00716.95
7.1.90.0030.00717.27
7.1.80.0040.00817.10
7.1.70.0020.00917.03
7.1.60.0020.01217.21
7.1.50.0070.01117.02
7.1.40.0080.00817.26
7.1.30.4100.04326.88
7.1.20.0200.03326.83
7.1.10.0170.02818.89
7.1.00.2100.02818.92
7.0.330.0040.00916.84
7.0.320.0060.00916.88
7.0.310.0070.00716.82
7.0.300.0080.00416.80
7.0.290.0030.00916.91
7.0.280.0070.00416.89
7.0.270.0030.00617.09
7.0.260.0090.00616.95
7.0.250.0040.00716.98
7.0.240.0040.00816.94
7.0.230.0060.00616.97
7.0.220.0040.00716.89
7.0.210.0000.00917.01
7.0.200.0000.01216.71
7.0.190.0030.01317.02
7.0.180.0000.01016.95
7.0.170.3460.03818.49
7.0.160.0100.03618.54
7.0.150.0170.03618.56
7.0.140.0100.02718.48
7.0.130.2370.03818.52
7.0.120.2580.03618.49
7.0.110.5550.03318.43
7.0.100.5270.04618.45
7.0.90.3620.03618.50
7.0.80.2730.02918.56
7.0.70.1570.02718.48
7.0.60.1700.03318.49
7.0.50.1170.03718.52
7.0.40.1270.03017.40
7.0.30.1780.03517.33
7.0.20.1270.03417.40
7.0.10.1320.03717.40
7.0.00.1520.03117.49
5.6.400.0060.00615.72
5.6.390.0110.00715.64
5.6.380.0090.00315.77
5.6.370.0030.01015.82
5.6.360.0070.01015.58
5.6.350.0030.00915.55
5.6.340.0060.00915.40
5.6.330.0000.01215.72
5.6.320.0030.01415.52
5.6.310.0060.00615.45
5.6.300.0040.01315.77
5.6.290.0030.01015.38
5.6.280.0000.01515.46
5.6.270.0090.00315.73
5.6.260.0040.01115.51
5.6.250.0060.00615.39
5.6.240.0030.00715.90
5.6.230.0040.01115.61
5.6.220.0040.00715.57
5.6.210.0030.01015.45
5.6.200.0100.00715.58
5.6.190.0030.01015.81
5.6.180.0000.02115.68
5.6.170.0100.00715.39
5.6.160.0040.01115.63
5.6.150.0070.00715.65
5.6.140.0030.01015.80
5.6.130.0040.00815.41
5.6.120.0080.00815.73
5.6.110.0070.00715.62
5.6.100.0090.00915.65
5.6.90.0030.00715.64
5.6.80.0110.00615.48
5.6.70.0070.00715.58
5.6.60.0100.00715.71
5.6.50.0080.00915.48
5.6.40.0110.00715.37
5.6.30.0110.00715.38
5.6.20.0030.00615.38
5.6.10.0000.00915.42
5.6.00.0090.00015.50

preferences:
135.07 ms | 403 KiB | 5 Q