3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { public function foo() { } } interface I { function foo(); } class P { use T; } class C extends P implements I { use T; } echo (new ReflectionMethod(C::class, 'foo'))->getPrototype()->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.5.30.0120.00521.21
8.5.20.0070.01119.62
8.5.10.0100.00816.64
8.5.00.0120.01020.14
8.4.180.0150.00719.46
8.4.170.0160.00620.66
8.4.160.0080.01423.10
8.4.150.0080.00417.83
8.4.140.0190.01117.78
8.4.130.0120.00719.72
8.4.120.0100.00622.49
8.4.110.0100.01122.21
8.4.100.0120.00720.50
8.4.90.0090.00818.86
8.4.80.0130.00618.58
8.4.70.0110.01118.04
8.4.60.0050.00319.16
8.4.50.0130.00718.60
8.4.40.0060.01317.39
8.4.30.0100.01018.72
8.4.20.0160.00318.48
8.4.10.0090.00317.48
8.3.300.0100.00920.73
8.3.290.0120.00820.79
8.3.280.0130.00918.44
8.3.270.0120.00716.34
8.3.260.0130.00716.63
8.3.250.0120.00718.74
8.3.240.0110.00818.89
8.3.230.0150.00616.57
8.3.220.0030.00419.06
8.3.210.0150.00516.59
8.3.200.0060.00216.32
8.3.190.0100.00916.95
8.3.180.0100.00516.66
8.3.170.0110.00718.95
8.3.160.0110.00716.48
8.3.150.0110.00717.39
8.3.140.0080.00016.64
8.3.130.0000.00918.44
8.3.120.0100.00720.77
8.3.110.0070.01020.94
8.3.100.0090.00018.17
8.3.90.0140.00416.43
8.3.80.0060.00318.55
8.3.70.0110.01118.30
8.3.60.0040.01118.30
8.3.50.0130.00318.05
8.3.40.0060.01018.69
8.3.30.0110.00318.71
8.3.20.0070.00719.02
8.3.10.0040.00423.48
8.3.00.0030.00522.39
8.2.300.0110.00818.06
8.2.290.0120.00620.48
8.2.280.0090.01118.17
8.2.270.0150.00416.43
8.2.260.0000.00818.33
8.2.250.0040.00418.13
8.2.240.0000.00918.95
8.2.230.0040.00422.58
8.2.220.0000.01024.06
8.2.210.0100.00026.77
8.2.200.0100.00018.41
8.2.190.0000.01416.63
8.2.180.0140.00718.54
8.2.170.0110.00422.96
8.2.160.0100.00720.74
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00722.10
8.2.120.0040.00426.35
8.2.110.0100.00022.07
8.2.100.0090.00317.84
8.2.90.0040.00417.63
8.2.80.0080.00017.97
8.2.70.0000.00917.68
8.2.60.0080.00018.16
8.2.50.0050.00318.10
8.2.40.0040.00421.15
8.2.30.0000.00720.59
8.2.20.0000.00717.88
8.2.10.0040.00417.98
8.2.00.0050.00319.22
8.1.340.0100.00817.65
8.1.330.0040.00521.82
8.1.320.0130.00616.24
8.1.310.0040.00416.36
8.1.300.0110.00720.00
8.1.290.0040.00718.88
8.1.280.0110.00425.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00020.57
8.1.230.0060.00619.02
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0040.00418.78
8.1.160.0000.00718.86
8.1.150.0050.00218.81
8.1.140.0080.00018.82
8.1.130.0030.00318.93
8.1.120.0030.00317.41
8.1.110.0040.00417.41
8.1.100.0000.00817.32
8.1.90.0030.00517.35
8.1.80.0000.00717.40
8.1.70.0000.00817.45
8.1.60.0090.00017.52
8.1.50.0000.00717.40
8.1.40.0000.00717.34
8.1.30.0000.00817.55
8.1.20.0000.01017.45
8.1.10.0000.00817.51
8.1.00.0040.00417.33
8.0.300.0040.00421.64
8.0.290.0060.00316.63
8.0.280.0000.00718.45
8.0.270.0030.00416.70
8.0.260.0000.00618.56
8.0.250.0030.00616.96
8.0.240.0000.00717.00
8.0.230.0000.00616.95
8.0.220.0030.00316.84
8.0.210.0030.00316.81
8.0.200.0040.00416.95
8.0.190.0000.00816.93
8.0.180.0000.00816.87
8.0.170.0040.00416.84
8.0.160.0000.00916.80
8.0.150.0000.00816.66
8.0.140.0030.00616.66
8.0.130.0000.00713.31
8.0.120.0040.00416.76
8.0.110.0030.00516.88
8.0.100.0050.00316.80
8.0.90.0000.00716.87
8.0.80.0030.01316.77
8.0.70.0000.00716.74
8.0.60.0040.00416.77
8.0.50.0040.00416.61
8.0.30.0090.01116.95
8.0.20.0090.01217.40
8.0.10.0050.00216.92
8.0.00.0050.01316.72
7.4.330.0020.00215.55
7.4.320.0040.00416.59
7.4.300.0030.00316.32
7.4.290.0000.00716.35
7.4.280.0030.00816.55
7.4.270.0070.00016.43
7.4.260.0040.00316.51
7.4.250.0040.00416.32
7.4.240.0050.00316.54
7.4.230.0040.00416.52
7.4.220.0080.00016.62
7.4.210.0030.01216.41
7.4.200.0000.00716.51
7.4.160.0070.01016.43
7.4.140.0100.01017.86
7.4.130.0100.00916.45
7.4.120.0120.00616.46
7.4.110.0180.00316.36
7.4.100.0090.00916.39
7.4.90.0140.00316.48
7.4.80.0130.00319.39
7.4.70.0130.01016.41
7.4.60.0200.00516.37
7.4.50.0060.00916.23
7.4.40.0130.00416.51
7.4.10.0030.01614.81
7.4.00.0060.01014.85
7.3.330.0050.00013.19
7.3.320.0070.00013.21
7.3.310.0030.00316.24
7.3.300.0070.00016.24
7.3.290.0030.00316.16
7.3.280.0080.00916.20
7.3.260.0120.00616.36
7.3.240.0090.01216.24
7.3.230.0100.00716.46
7.3.210.0040.01216.27
7.3.200.0090.00616.63
7.3.190.0090.00616.48
7.3.180.0110.00716.21
7.3.170.0040.01116.44
7.3.160.0000.01716.45
7.3.130.0100.00714.83
7.3.120.0140.00414.74
7.3.110.0070.01014.63
7.3.100.0060.00914.64
7.3.90.0040.01114.75
7.3.80.0060.00914.79
7.3.70.0040.00414.67
7.3.60.0110.00014.63
7.3.50.0060.00914.71
7.3.40.0030.00614.79
7.3.30.0080.00614.58
7.3.20.0070.00416.52
7.3.10.0090.00616.34
7.3.00.0000.01316.63
7.2.330.0110.00716.59
7.2.320.0130.00316.67
7.2.310.0140.00316.71
7.2.300.0040.01316.48
7.2.290.0060.00916.61
7.2.260.0070.00715.07
7.2.250.0040.01114.92
7.2.240.0030.01314.47
7.2.230.0110.00814.70
7.2.220.0060.00614.79
7.2.210.0060.00614.95
7.2.200.0040.00814.95
7.2.190.0030.01014.94
7.2.180.0030.00614.92
7.2.170.0040.01114.92
7.2.160.0050.00514.93
7.2.150.0040.01516.92
7.2.140.0070.00316.88
7.2.130.0070.00316.97
7.2.120.0060.00316.48
7.2.110.0000.01616.89
7.2.100.0070.00716.43
7.2.90.0640.00615.74
7.2.80.0240.00515.81
7.2.70.0190.01115.74
7.2.60.0310.00315.85
7.2.50.0200.01215.73
7.2.40.0290.00316.04
7.2.30.0260.01215.89
7.2.20.0330.00515.74
7.2.10.0210.01315.92
7.2.00.0240.01015.94
7.1.330.0030.01015.51
7.1.320.0080.00615.43
7.1.310.0060.00915.53
7.1.300.0090.00615.55
7.1.290.0030.01015.64
7.1.280.0090.00315.63
7.1.270.0030.00515.25
7.1.260.0060.00915.50
7.1.250.0060.00615.34
7.1.240.0070.01015.69
7.1.230.0070.01015.63
7.1.220.0110.00415.41
7.1.210.0380.00714.76
7.1.200.0160.00914.76
7.1.190.0460.00314.72
7.1.180.0270.00614.79
7.1.170.0230.01014.77
7.1.160.0250.00914.78
7.1.150.0230.00814.71
7.1.140.0420.01014.81
7.1.130.0270.00514.53
7.1.120.0230.00614.57
7.1.110.0200.00914.85
7.1.100.0390.00514.66
7.1.90.0370.00614.56
7.1.80.0370.00714.62
7.1.70.0410.00714.81
7.1.60.0390.01223.76
7.1.50.0410.01123.75
7.1.40.0290.00523.81
7.1.30.0420.00923.83
7.1.20.0440.00623.70
7.1.10.0230.00714.61
7.1.00.0230.00314.71
7.0.330.0060.00615.21
7.0.320.0090.00615.03
7.0.310.0030.00615.27
7.0.300.0100.00315.28
7.0.290.0060.00615.17
7.0.280.0090.00015.50
7.0.270.0080.00415.28
7.0.260.0100.00315.11
7.0.250.0040.00715.35
7.0.240.0060.00715.16
7.0.230.0030.00615.15
7.0.220.0070.00315.48
7.0.210.0100.00715.41
7.0.200.0070.00415.31
7.0.190.0050.00515.43
7.0.180.0070.00415.32
7.0.170.0070.00315.51
7.0.160.0000.01415.34
7.0.150.0090.00315.41
7.0.140.0040.00415.35
7.0.130.0040.01115.12
7.0.120.0000.01115.26
7.0.110.0070.00715.42
7.0.100.0000.00815.27
7.0.90.0060.00915.46
7.0.80.0000.01015.36
7.0.70.0160.00315.26
7.0.60.0140.00015.35
7.0.50.0040.00815.40
7.0.40.0060.01013.34
7.0.30.0070.00713.48
7.0.20.0070.00713.48
7.0.10.0040.00713.26
7.0.00.0040.01113.45
5.6.400.0070.00714.31
5.6.390.0060.00914.18
5.6.380.0000.00914.23
5.6.370.0160.00014.29
5.6.360.0000.01414.29
5.6.350.0110.00414.13
5.6.340.0030.01014.42
5.6.330.0080.00414.59
5.6.320.0030.00714.52
5.6.310.0000.01413.93
5.6.300.0050.00314.21
5.6.290.0070.00314.50
5.6.280.0060.00614.53
5.6.270.0040.00714.43
5.6.260.0070.00714.32
5.6.250.0050.00514.50
5.6.240.0080.00314.22
5.6.230.0030.01014.28
5.6.220.0060.00614.18
5.6.210.0040.01414.00
5.6.200.0070.01114.34
5.6.190.0090.00614.14
5.6.180.0030.00914.19
5.6.170.0030.01314.28
5.6.160.0060.00914.29
5.6.150.0140.00014.02
5.6.140.0060.00614.27
5.6.130.0110.00314.34
5.6.120.0060.00614.23
5.6.110.0040.00814.33
5.6.100.0000.00914.25
5.6.90.0050.00513.95
5.6.80.0070.00714.07
5.6.70.0040.01114.22
5.6.60.0060.00914.09
5.6.50.0070.01013.99
5.6.40.0140.00314.07
5.6.30.0000.01214.08
5.6.20.0100.00614.19
5.6.10.0000.01314.25
5.6.00.0050.00414.07

preferences:
78.85 ms | 1921 KiB | 5 Q