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('implement'));

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.0100.01018.56
8.3.50.0220.00222.11
8.3.40.0090.00618.46
8.3.30.0110.00419.08
8.3.20.0070.00020.36
8.3.10.0080.00023.43
8.3.00.0040.00419.08
8.2.180.0110.00418.42
8.2.170.0150.00022.96
8.2.160.0070.00722.14
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0080.00020.86
8.2.110.0030.00622.13
8.2.100.0080.00317.78
8.2.90.0000.00819.17
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0000.00818.00
8.2.30.0000.00718.07
8.2.20.0040.00417.70
8.2.10.0000.00818.08
8.2.00.0040.00417.64
8.1.280.0130.00725.92
8.1.270.0090.00018.80
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.77
8.1.230.0070.00419.10
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0050.00317.25
8.1.180.0060.00318.10
8.1.170.0060.00318.65
8.1.160.0050.00222.04
8.1.150.0070.00018.84
8.1.140.0030.00519.24
8.1.130.0040.00417.72
8.1.120.0070.00017.53
8.1.110.0000.00717.38
8.1.100.0000.00717.38
8.1.90.0000.00817.50
8.1.80.0040.00417.39
8.1.70.0000.00717.45
8.1.60.0030.00517.57
8.1.50.0050.00317.45
8.1.40.0040.00417.47
8.1.30.0090.00017.73
8.1.20.0020.00517.65
8.1.10.0000.00717.52
8.1.00.0050.00317.48
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0070.00018.47
8.0.270.0000.00717.16
8.0.260.0000.00617.27
8.0.250.0000.00716.87
8.0.240.0000.00816.88
8.0.230.0080.00016.98
8.0.220.0070.00016.81
8.0.210.0000.00716.94
8.0.200.0000.00616.94
8.0.190.0030.00617.00
8.0.180.0050.00316.87
8.0.170.0000.00816.98
8.0.160.0040.00316.97
8.0.150.0000.00716.87
8.0.140.0040.00416.90
8.0.130.0030.00613.33
8.0.120.0000.00816.85
8.0.110.0080.00016.89
8.0.100.0040.00416.90
8.0.90.0040.00316.82
8.0.80.0190.00316.88
8.0.70.0040.00416.74
8.0.60.0000.00716.77
8.0.50.0040.00416.89
8.0.30.0090.01417.04
8.0.20.0110.01017.40
8.0.10.0080.00017.04
8.0.00.0120.01016.92
7.4.330.0000.00515.09
7.4.320.0000.00716.54
7.4.300.0030.00316.54
7.4.290.0000.00816.54
7.4.280.0000.00716.61
7.4.270.0000.00716.69
7.4.260.0040.00416.66
7.4.250.0020.00516.51
7.4.240.0010.00716.60
7.4.230.0070.00016.70
7.4.220.0090.00916.65
7.4.210.0040.01116.57
7.4.200.0030.00616.71
7.4.160.0090.00916.31
7.4.150.0150.00417.40
7.4.140.0070.01117.86
7.4.130.0090.00916.43
7.4.120.0080.01216.49
7.4.110.0080.00816.58
7.4.100.0100.01016.63
7.4.90.0070.01016.50
7.4.80.0100.01019.39
7.4.70.0130.00316.55
7.4.60.0060.01216.38
7.4.50.0080.00016.57
7.4.40.0130.00716.60
7.4.30.0060.01716.62
7.4.00.0030.01014.86
7.3.330.0050.00013.20
7.3.320.0030.00413.07
7.3.310.0040.00416.36
7.3.300.0070.00016.26
7.3.290.0080.00816.27
7.3.280.0090.00816.26
7.3.270.0050.01517.40
7.3.260.0150.00316.46
7.3.250.0080.00816.54
7.3.240.0080.00816.59
7.3.230.0080.00816.39
7.3.210.0130.00716.15
7.3.200.0060.01319.39
7.3.190.0100.00716.28
7.3.180.0100.00616.29
7.3.170.0070.01016.28
7.3.160.0050.01116.38
7.3.10.0030.01016.50
7.3.00.0030.00916.82
7.2.330.0170.00316.66
7.2.320.0100.01316.71
7.2.310.0090.00916.47
7.2.300.0100.00716.65
7.2.290.0000.01716.35
7.2.130.0060.00616.95
7.2.120.0060.00916.75
7.2.110.0000.01416.97
7.2.100.0060.00316.84
7.2.90.0040.01116.74
7.2.80.0060.00616.82
7.2.70.0070.00716.90
7.2.60.0030.01016.78
7.2.50.0100.00316.93
7.2.40.0060.00617.02
7.2.30.0060.00916.71
7.2.20.0030.00716.60
7.2.10.0070.00316.73
7.2.00.0020.01317.78
7.1.250.0070.00315.62
7.1.200.0000.01215.52
7.1.100.0000.00918.16
7.1.70.0000.00717.11
7.1.60.0180.00719.46
7.1.50.0040.00716.90
7.1.00.0030.07722.54
7.0.200.0000.01016.80
7.0.140.0030.03721.95
7.0.60.0130.06319.93
7.0.50.0030.08717.90
7.0.40.0130.03720.26
7.0.30.0200.04020.13
7.0.20.0270.06720.15
7.0.10.0070.04020.21
7.0.00.0130.08020.19
5.6.280.0030.07320.76
5.6.210.0100.03320.68
5.6.200.0000.04718.14
5.6.190.0030.04720.64
5.6.180.0300.08720.39
5.6.170.0300.05020.71
5.6.160.0130.06320.50
5.6.150.0130.07718.15
5.6.140.0070.04018.20
5.6.130.0100.05318.14
5.6.120.0030.08721.04
5.6.110.0000.09020.98
5.6.100.0070.08021.01
5.6.90.0100.05720.98
5.6.80.0100.08020.39
5.5.350.4200.03720.47
5.5.340.0100.07318.04
5.5.330.0100.08020.21
5.5.320.0200.04020.41
5.5.310.0230.06320.23
5.5.300.0070.04718.08
5.5.290.0030.07717.99
5.5.280.0000.05020.69
5.5.270.0070.04320.74
5.5.260.0100.07720.88
5.5.250.0130.07320.71
5.5.240.0000.04020.27
5.4.450.0970.05019.45
5.4.440.0770.05319.29
5.4.430.0830.05319.63
5.4.420.0830.04319.63
5.4.410.0670.06019.12
5.4.400.0870.04019.22
5.4.390.0330.04318.63
5.4.380.0270.06018.80
5.4.370.0270.06018.63
5.4.360.0270.07018.62
5.4.350.0370.06318.75
5.4.340.0200.05018.51
5.4.320.0200.05318.78
5.4.310.0130.06718.74
5.4.300.0300.04318.84
5.4.290.0270.05318.79
5.4.280.0300.05018.78
5.4.270.0270.05018.83
5.4.260.0230.05318.47
5.4.250.0370.04018.59
5.4.240.0270.06318.62
5.4.230.0230.05318.52
5.4.220.0130.06318.46
5.4.210.0200.05318.55
5.4.200.0170.05316.63
5.4.190.0300.05018.52
5.4.180.0230.07018.79
5.4.170.0370.07018.45
5.4.160.0370.06318.79
5.4.150.0200.06018.68
5.4.140.0300.04716.47
5.4.130.0270.04316.23
5.4.120.0300.04016.29
5.4.110.0100.05716.27
5.4.100.0230.05016.23
5.4.90.0330.04016.33
5.4.80.0270.04316.29
5.4.70.0300.04716.21
5.4.60.0130.06016.31
5.4.50.0230.04716.42
5.4.40.0270.04316.27
5.4.30.0230.05316.26
5.4.20.0230.06316.24
5.4.10.0230.05316.41
5.4.00.0270.04315.68
5.3.290.0270.05714.77
5.3.280.0300.04714.50
5.3.270.0230.05314.50
5.3.260.0170.06014.59
5.3.250.0170.05714.59
5.3.240.0270.06314.70
5.3.230.0230.05014.57
5.3.220.0170.05714.66
5.3.210.0270.05014.46
5.3.200.0230.05014.53
5.3.190.0230.05014.50
5.3.180.0230.06714.46
5.3.170.0200.05014.56
5.3.160.0170.07314.47
5.3.150.0070.07014.46
5.3.140.0230.05014.51
5.3.130.0170.05714.46
5.3.120.0230.06714.53
5.3.110.0270.07014.64
5.3.100.0200.06714.14
5.3.90.0400.05314.03
5.3.80.0230.05014.10
5.3.70.0200.05314.01
5.3.60.0400.03313.91
5.3.50.0300.05013.84
5.3.40.0300.04313.93
5.3.30.0230.04713.98
5.3.20.0200.05013.60
5.3.10.0200.05013.61
5.3.00.0170.05713.73
5.2.170.0130.04711.29
5.2.160.0170.04311.20
5.2.150.0170.05011.11
5.2.140.0170.05711.05
5.2.130.0270.04311.09
5.2.120.0100.05711.03
5.2.110.0270.04311.06
5.2.100.0130.04311.25
5.2.90.0370.03011.05
5.2.80.0200.05711.23
5.2.70.0200.05711.05
5.2.60.0300.04711.11
5.2.50.0200.04711.15
5.2.40.0130.04011.05
5.2.30.0200.04310.95
5.2.20.0230.04710.94
5.2.10.0230.03710.92
5.2.00.0230.04710.77
5.1.60.0200.04010.15
5.1.50.0130.03710.13
5.1.40.0100.0479.94
5.1.30.0230.03710.39
5.1.20.0130.04310.41
5.1.10.0170.03310.05
5.1.00.0230.02710.13
5.0.50.0100.0408.57
5.0.40.0130.0378.42
5.0.30.0030.0638.28
5.0.20.0100.0378.32
5.0.10.0130.0378.26
5.0.00.0070.0578.34
4.4.90.0100.0307.05
4.4.80.0070.0337.05
4.4.70.0070.0237.05
4.4.60.0100.0207.05
4.4.50.0100.0307.05
4.4.40.0030.0507.05
4.4.30.0030.0307.05
4.4.20.0130.0237.05
4.4.10.0030.0307.05
4.4.00.0030.0407.05
4.3.110.0100.0307.05
4.3.100.0070.0307.05
4.3.90.0100.0277.05
4.3.80.0000.0507.05
4.3.70.0100.0277.05
4.3.60.0200.0177.05
4.3.50.0030.0307.05
4.3.40.0130.0307.05
4.3.30.0070.0207.05
4.3.20.0070.0207.05
4.3.10.0070.0207.05
4.3.00.0100.0277.99

preferences:
37.32 ms | 401 KiB | 5 Q