3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Test { private $bridge; public function implement() { if (!isset($this->final)){ parent::implement(); } echo $this->foo; } } class A { use Test; private $foo = 'bar'; private $final = 1; public function __construct() { $this->implement(); } public function foo() { echo $this->bridge; } } class B extends A { use Test; private $foo = 'foo'; } class C extends B { use Test; private $foo = 'buz'; } $r = new ReflectionClass('C'); var_dump($r->getParentClass()->hasMethod('implements'));

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.60.0030.01718.55
8.3.50.0120.00521.99
8.3.40.0150.00318.57
8.3.30.0140.00018.92
8.3.20.0040.00420.34
8.3.10.0080.00023.44
8.3.00.0070.00019.05
8.2.180.0070.01016.63
8.2.170.0160.00322.96
8.2.160.0070.00722.08
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00421.05
8.2.110.0030.00622.27
8.2.100.0100.00317.91
8.2.90.0040.00422.20
8.2.80.0040.00417.97
8.2.70.0050.00317.93
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0000.00922.03
8.2.30.0040.00418.14
8.2.20.0070.00017.75
8.2.10.0030.00618.05
8.2.00.0080.00017.71
8.1.280.0130.00725.92
8.1.270.0040.00418.96
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.90
8.1.230.0070.00322.11
8.1.220.0000.00917.74
8.1.210.0080.00018.95
8.1.200.0000.01017.23
8.1.190.0060.00317.36
8.1.180.0030.00618.10
8.1.170.0080.00018.65
8.1.160.0000.00822.03
8.1.150.0000.00718.98
8.1.140.0040.00419.23
8.1.130.0000.00717.89
8.1.120.0040.00417.52
8.1.110.0040.00417.46
8.1.100.0050.00217.36
8.1.90.0040.00417.38
8.1.80.0050.00217.39
8.1.70.0070.00017.43
8.1.60.0080.00017.57
8.1.50.0030.00517.54
8.1.40.0040.00417.55
8.1.30.0040.00417.64
8.1.20.0000.00817.57
8.1.10.0000.00817.57
8.1.00.0060.00317.35
8.0.300.0040.00419.89
8.0.290.0040.00416.75
8.0.280.0000.00818.49
8.0.270.0030.00317.33
8.0.260.0030.00317.21
8.0.250.0030.00316.98
8.0.240.0000.00817.02
8.0.230.0000.00816.87
8.0.220.0030.00316.88
8.0.210.0040.00416.82
8.0.200.0000.00617.03
8.0.190.0000.00816.86
8.0.180.0030.00316.84
8.0.170.0040.00416.94
8.0.160.0000.00716.86
8.0.150.0040.00416.88
8.0.140.0040.00416.91
8.0.130.0030.00313.30
8.0.120.0050.00316.88
8.0.110.0050.00316.90
8.0.100.0040.00416.85
8.0.90.0030.00516.71
8.0.80.0070.01416.91
8.0.70.0000.00816.91
8.0.60.0040.00416.72
8.0.50.0070.00016.95
8.0.30.0150.01017.09
8.0.20.0080.01017.40
8.0.10.0030.00516.84
8.0.00.0110.00616.82
7.4.330.0000.00615.07
7.4.320.0000.00716.61
7.4.300.0060.00016.61
7.4.290.0030.00516.60
7.4.280.0000.00816.43
7.4.270.0030.00316.43
7.4.260.0070.00016.61
7.4.250.0070.00016.56
7.4.240.0030.00516.50
7.4.230.0030.00516.58
7.4.220.0070.01116.73
7.4.210.0130.00716.68
7.4.200.0040.00416.73
7.4.160.0110.00416.52
7.4.150.0150.00917.40
7.4.140.0090.00917.86
7.4.130.0120.00516.49
7.4.120.0110.00816.56
7.4.110.0100.00716.52
7.4.100.0070.01016.49
7.4.90.0030.01516.48
7.4.80.0130.00619.39
7.4.70.0130.01116.64
7.4.60.0130.00716.38
7.4.50.0050.00016.57
7.4.40.0150.00916.42
7.4.30.0150.00316.52
7.4.00.0150.00114.98
7.3.330.0030.00313.21
7.3.320.0070.00013.28
7.3.310.0030.00316.25
7.3.300.0030.00316.16
7.3.290.0090.00716.24
7.3.280.0070.01116.23
7.3.270.0000.01817.40
7.3.260.0140.00316.29
7.3.250.0050.01316.31
7.3.240.0100.01016.22
7.3.230.0090.00916.39
7.3.210.0100.01016.19
7.3.200.0040.01219.39
7.3.190.0060.01516.31
7.3.180.0070.01016.18
7.3.170.0080.00816.27
7.3.160.0080.00816.30
7.3.120.0100.00714.93
7.3.110.0040.01414.93
7.3.100.0060.00914.55
7.3.90.0140.00714.84
7.3.80.0100.00314.49
7.3.70.0060.00314.73
7.3.60.0100.00714.59
7.3.50.0000.01014.91
7.3.40.0060.00314.75
7.3.30.0100.00014.89
7.3.20.0110.00416.69
7.3.10.0040.00916.56
7.3.00.0030.00616.44
7.2.330.0070.01116.35
7.2.320.0140.00316.63
7.2.310.0180.00016.50
7.2.300.0080.00916.50
7.2.290.0080.00816.58
7.2.250.0040.01514.93
7.2.240.0080.01114.88
7.2.230.0040.00714.86
7.2.220.0030.01314.80
7.2.210.0100.00615.20
7.2.200.0080.00314.93
7.2.190.0070.01014.99
7.2.180.0040.01114.77
7.2.170.0110.00414.89
7.2.130.0110.00416.71
7.2.120.0100.00716.42
7.2.110.0200.01016.63
7.2.100.0100.01416.21
7.2.90.0230.01016.41
7.2.80.0110.00616.53
7.2.70.0120.01216.77
7.2.60.0060.00916.75
7.2.50.0030.01316.53
7.2.40.0040.00717.00
7.2.30.0000.01416.81
7.2.20.0030.01016.19
7.2.10.0030.01216.62
7.2.00.0130.00817.86
7.1.330.0000.01515.62
7.1.320.0000.01115.40
7.1.310.0100.00715.78
7.1.300.0030.00615.77
7.1.290.0070.00715.40
7.1.280.0000.01515.32
7.1.270.0040.01115.39
7.1.260.0100.00315.49
7.1.250.0070.00715.50
7.1.200.0090.00615.50
7.1.100.0040.00718.23
7.1.70.0000.00816.90
7.1.60.0030.01419.46
7.1.50.0030.00816.46
7.1.00.0000.08022.57
7.0.200.0000.00716.41
7.0.140.0000.05721.93
7.0.70.2730.02719.91
7.0.60.0130.06319.94
7.0.50.0100.07017.84
7.0.40.0030.04720.04
7.0.30.0130.04720.21
7.0.20.0230.07720.10
7.0.10.0230.06320.13
7.0.00.0170.07720.25
5.6.280.0030.07321.10
5.6.210.0070.07020.53
5.6.200.0070.06318.25
5.6.190.0030.06320.60
5.6.180.0000.04320.58
5.6.170.0400.08020.57
5.6.160.0030.08020.44
5.6.150.0070.08318.21
5.6.140.0070.07718.15
5.6.130.0030.06718.20
5.6.120.0100.08321.02
5.6.110.0130.07721.03
5.6.100.0130.06320.99
5.6.90.0070.04020.98
5.6.80.0030.04020.40
5.6.70.0330.06320.50
5.5.350.0100.06020.42
5.5.340.0030.06017.95
5.5.330.0100.08320.29
5.5.320.0070.03720.28
5.5.310.0300.07020.32
5.5.300.0000.05317.99
5.5.290.0070.07017.94
5.5.280.0000.07720.88
5.5.270.0030.04020.89
5.5.260.0100.04320.89
5.5.250.0170.03020.51
5.5.240.0070.05720.34
5.4.450.2430.04319.39
5.4.440.2570.05319.32
5.4.430.2370.03319.29
5.4.420.2300.03719.51
5.4.410.1200.04319.42
5.4.400.0130.06318.98
5.4.390.0070.04318.84
5.4.380.0070.05018.95
5.4.370.2670.04018.91
5.4.360.2600.04019.08
5.4.350.2470.04019.14
5.4.340.2270.04319.26
5.4.320.2570.03319.16
5.4.310.2100.04019.05
5.4.300.2400.04319.31
5.4.290.2400.04018.89
5.4.280.2100.04019.24
5.4.270.2430.03719.20
5.4.260.2200.03019.09
5.4.250.2070.03318.94
5.4.240.2370.04319.13
5.4.230.2570.04719.30
5.4.220.2270.04719.30
5.4.210.2600.04719.07
5.4.200.2130.04018.94
5.4.190.2330.04018.97
5.4.180.2370.04019.08
5.4.170.1870.04019.21
5.4.160.2470.04019.07
5.4.150.2670.04719.14
5.4.140.2330.03716.42
5.4.130.2330.03016.55
5.4.120.2200.03316.46
5.4.110.2270.03716.25
5.4.100.2870.03316.60
5.4.90.2100.03716.63
5.4.80.2200.04016.31
5.4.70.2400.04016.62
5.4.60.2200.04016.18
5.4.50.2370.04016.48
5.4.40.2300.03316.53
5.4.30.2370.03716.34
5.4.20.2070.03716.34
5.4.10.2370.04016.48
5.4.00.2330.03015.95
5.3.290.2470.04014.60
5.3.280.2400.04314.44
5.3.270.2200.03714.46
5.3.260.2200.03714.70
5.3.250.2130.03714.44
5.3.240.2070.03714.44
5.3.230.2300.04014.55
5.3.220.2270.03314.66
5.3.210.2130.03314.61
5.3.200.2330.03314.41
5.3.190.2100.04014.43
5.3.180.3030.03314.43
5.3.170.2100.03314.50
5.3.160.2070.04014.51
5.3.150.2200.03714.66
5.3.140.2670.04714.40
5.3.130.2200.04314.42
5.3.120.2130.03314.41
5.3.110.2270.03714.56
5.3.100.2270.03713.88
5.3.90.2270.03713.97
5.3.80.2430.03314.00
5.3.70.2230.03714.06
5.3.60.2430.03013.95
5.3.50.2370.03313.83
5.3.40.2130.03713.89
5.3.30.2170.03313.75
5.3.20.1870.03013.70
5.3.10.2030.03713.66
5.3.00.2200.04013.65
5.2.170.2100.03311.00
5.2.160.1930.02311.04
5.2.150.2030.02310.99
5.2.140.1930.02310.98
5.2.130.1870.03011.12
5.2.120.2200.03311.11
5.2.110.2070.03310.96
5.2.100.2230.03011.12
5.2.90.2030.03011.04
5.2.80.2130.03310.93
5.2.70.2130.03311.11
5.2.60.1930.02711.09
5.2.50.2000.03311.17
5.2.40.1730.03011.00
5.2.30.1600.03010.88
5.2.20.1670.03010.79
5.2.10.1600.02310.88
5.2.00.1470.02310.61
5.1.60.1570.0279.93
5.1.50.1870.0279.86
5.1.40.1470.0239.86
5.1.30.1700.03010.30
5.1.20.1430.02310.27
5.1.10.1430.0239.93
5.1.00.1500.02010.04
5.0.50.0770.0208.53
5.0.40.0700.0178.33
5.0.30.0900.0308.23
5.0.20.0800.0238.09
5.0.10.0930.0178.16
5.0.00.0770.0278.08
4.4.90.0730.0137.34
4.4.80.0800.0207.34
4.4.70.0900.0237.34
4.4.60.0930.0207.34
4.4.50.0870.0207.34
4.4.40.0900.0277.34
4.4.30.0930.0207.34
4.4.20.0770.0137.34
4.4.10.0970.0207.34
4.4.00.0930.0377.34
4.3.110.0770.0207.34
4.3.100.0870.0207.34
4.3.90.0770.0137.34
4.3.80.0700.0277.34
4.3.70.0870.0137.34
4.3.60.0800.0177.34
4.3.50.0700.0177.34
4.3.40.0770.0207.34
4.3.30.0430.0177.34
4.3.20.0370.0137.34
4.3.10.0430.0277.34
4.3.00.0470.0237.34

preferences:
42.26 ms | 401 KiB | 5 Q