3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function foo() { echo "success!\n"; } public function test() { $this->foo(); static::foo(); } } class B extends A { /* foo() will be copied to B, hence its scope will still be A and * the call be successful */ } class C extends A { private function foo() { /* original method is replaced; the scope of the new one is C */ } } $c = new C(); $c->test(); //fails ?>

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.0180.00418.32
8.3.50.0130.00521.08
8.3.40.0110.00318.61
8.3.30.0040.01118.84
8.3.20.0060.00318.82
8.3.10.0060.00320.49
8.3.00.0080.00019.38
8.2.180.0110.00725.92
8.2.170.0030.01422.96
8.2.160.0110.00322.30
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.83
8.2.110.0070.00422.08
8.2.100.0040.00817.84
8.2.90.0040.00419.16
8.2.80.0030.00617.97
8.2.70.0070.00417.48
8.2.60.0090.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0000.00719.73
8.2.20.0070.00017.53
8.2.10.0040.00417.60
8.2.00.0060.00317.54
8.1.280.0160.00025.92
8.1.270.0070.00023.99
8.1.260.0030.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00320.69
8.1.230.0080.00320.90
8.1.220.0000.00818.77
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00817.52
8.1.180.0040.00418.10
8.1.170.0030.00618.84
8.1.160.0040.00418.73
8.1.150.0040.00418.57
8.1.140.0000.00817.39
8.1.130.0000.00717.75
8.1.120.0040.00417.36
8.1.110.0070.00017.41
8.1.100.0000.00817.29
8.1.90.0040.00417.39
8.1.80.0070.00017.36
8.1.70.0030.00317.21
8.1.60.0050.00317.55
8.1.50.0000.00717.46
8.1.40.0040.00417.51
8.1.30.0000.00717.58
8.1.20.0040.00417.64
8.1.10.0040.00417.53
8.1.00.0040.00417.48
8.0.300.0070.00320.02
8.0.290.0040.00416.75
8.0.280.0050.00318.31
8.0.270.0000.00717.21
8.0.260.0000.00716.88
8.0.250.0040.00416.89
8.0.240.0060.00316.84
8.0.230.0030.00316.85
8.0.220.0040.00416.96
8.0.210.0000.00716.79
8.0.200.0000.00616.94
8.0.190.0030.00316.97
8.0.180.0040.00416.81
8.0.170.0030.00616.85
8.0.160.0070.00016.86
8.0.150.0060.00316.81
8.0.140.0020.00616.75
8.0.130.0030.00313.25
8.0.120.0000.00716.75
8.0.110.0040.00417.00
8.0.100.0040.00416.88
8.0.90.0070.00016.93
8.0.80.0120.00316.84
8.0.70.0040.00316.80
8.0.60.0040.00416.74
8.0.50.0070.00016.87
8.0.30.0070.01217.24
8.0.20.0130.00617.41
8.0.10.0000.00717.04
8.0.00.0110.00916.76
7.4.330.0000.00614.82
7.4.320.0030.00316.39
7.4.300.0000.00716.48
7.4.290.0000.00616.59
7.4.280.0040.00416.57
7.4.270.0030.00316.50
7.4.260.0030.00316.50
7.4.250.0060.00316.48
7.4.240.0030.00316.54
7.4.230.0000.00816.45
7.4.220.0030.01616.61
7.4.210.0080.00916.60
7.4.200.0000.00716.42
7.4.190.0000.00716.41
7.4.160.0100.00716.42
7.4.150.0070.01017.40
7.4.140.0130.00717.86
7.4.130.0050.01216.55
7.4.120.0060.01116.42
7.4.110.0070.01716.63
7.4.100.0060.01516.65
7.4.90.0110.00616.50
7.4.80.0110.00819.04
7.4.70.0100.00716.42
7.4.60.0150.00316.73
7.4.50.0040.00416.57
7.4.40.0100.00622.27
7.4.30.0120.00916.50
7.4.00.0060.00614.84
7.3.330.0000.00513.36
7.3.320.0060.00013.32
7.3.310.0070.00016.21
7.3.300.0030.00316.43
7.3.290.0090.00616.34
7.3.280.0100.00816.41
7.3.270.0130.00317.40
7.3.260.0150.00318.24
7.3.250.0120.00816.47
7.3.240.0000.01816.39
7.3.230.0060.01216.52
7.3.210.0110.00716.59
7.3.200.0100.00919.39
7.3.190.0110.00616.47
7.3.180.0100.00616.28
7.3.170.0060.01516.50
7.3.160.0070.01016.59
7.3.120.0070.01014.74
7.3.10.0100.00516.09
7.3.00.0070.01116.46
7.2.330.0100.00716.44
7.2.320.0140.00316.59
7.2.310.0060.01816.70
7.2.300.0140.00416.45
7.2.290.0130.00316.74
7.2.130.0040.01316.69
7.2.120.0120.00616.41
7.2.110.0080.00716.52
7.2.100.0030.01316.63
7.2.90.0110.00416.56
7.2.80.0060.00916.61
7.2.70.0150.00616.60
7.2.60.0130.00216.81
7.2.50.0090.00616.52
7.2.40.0040.01216.89
7.2.30.0070.00716.66
7.2.20.0040.01416.80
7.2.10.0040.00416.25
7.2.00.0050.00918.04
7.1.250.0130.00315.52
7.1.200.0080.00615.69
7.1.100.0030.00917.42
7.1.70.0000.01016.98
7.1.60.0110.01419.40
7.1.50.0040.00716.89
7.1.00.0070.07322.35
7.0.200.0030.00516.75
7.0.140.0100.05022.15
7.0.60.0130.08019.89
7.0.50.0070.04717.89
7.0.40.0100.05017.84
7.0.30.0000.07717.85
7.0.20.0130.08017.76
7.0.10.0100.07017.75
7.0.00.0070.07017.85
5.6.280.0000.07721.11
5.6.210.0070.07720.68
5.6.200.0070.08018.25
5.6.190.0030.04018.27
5.6.180.0030.06718.16
5.6.170.0070.06718.17
5.6.160.0000.07318.15
5.6.150.0100.07718.19
5.6.140.0170.03718.14
5.6.130.0030.05018.21
5.6.120.0030.05318.23
5.6.110.0030.08318.17
5.6.100.0130.04318.17
5.6.90.0030.05018.17
5.6.80.0070.08017.53
5.6.70.0070.07317.56
5.6.60.0030.07717.59
5.6.50.0000.04717.63
5.6.40.0000.09317.64
5.6.30.0070.05317.64
5.6.20.0000.05717.59
5.6.10.0070.04017.64
5.6.00.0030.04017.62
5.5.350.3930.04320.31
5.5.340.0170.07017.93
5.5.330.0100.08017.95
5.5.320.0100.07017.97
5.5.310.0170.06017.98
5.5.300.0070.08018.00
5.5.290.0070.07018.05
5.5.280.0030.08317.94
5.5.270.0070.07317.95
5.5.260.0070.08018.01
5.5.250.0100.06317.85
5.5.240.0070.06717.37
5.5.230.0100.07017.36
5.5.220.0100.04317.45
5.5.210.0030.04017.41
5.5.200.0030.05317.31
5.5.190.0030.06017.31
5.5.180.0070.06717.43
5.5.160.0070.07717.34
5.5.150.0130.06317.32
5.5.140.0030.08017.31
5.5.130.0000.05317.29
5.5.120.0100.03317.30
5.5.110.0070.07317.33
5.5.100.0100.04317.23
5.5.90.0000.04017.22
5.5.80.0030.05717.23
5.5.70.0070.07017.25
5.5.60.0100.06317.22
5.5.50.0100.03317.22
5.5.40.0070.04717.33
5.5.30.0070.07717.18
5.5.20.0030.05317.21
5.5.10.0070.07017.16
5.5.00.0030.05717.32
5.4.450.0030.05719.60
5.4.440.0200.06719.36
5.4.430.0130.07719.37
5.4.420.0030.05019.59
5.4.410.0170.04019.20
5.4.400.0070.06719.13
5.4.390.0130.06318.89
5.4.380.0130.07718.98
5.4.370.0000.07319.02
5.4.360.0030.08319.04
5.4.350.0070.08018.89
5.4.340.0030.08019.04
5.4.320.0070.05019.10
5.4.310.0070.05019.05
5.4.300.0070.05319.03
5.4.290.0100.07019.00
5.4.280.0000.04719.04
5.4.270.0070.07719.05
5.4.260.0000.05718.98
5.4.250.0070.04019.04
5.4.240.0030.05019.04
5.4.230.0100.08019.00
5.4.220.0070.04019.05
5.4.210.0030.04018.98
5.4.200.0070.03719.09
5.4.190.0070.04719.04
5.4.180.0070.04319.11
5.4.170.0170.07019.12
5.4.160.0070.06019.10
5.4.150.0000.04719.11
5.4.140.0100.05716.35
5.4.130.0070.07016.41
5.4.120.0030.03716.45
5.4.110.0030.07716.54
5.4.100.0070.06716.61
5.4.90.0070.06016.51
5.4.80.0030.03716.36
5.4.70.0070.07316.51
5.4.60.0070.06016.30
5.4.50.0030.07316.39
5.4.40.0000.05016.48
5.4.30.0030.07316.29
5.4.20.0030.04316.39
5.4.10.0130.04316.50
5.4.00.0230.02715.87
5.3.290.0070.07314.74
5.3.280.0100.06014.63
5.3.270.0030.06014.57
5.3.260.0070.04314.61
5.3.250.0070.05014.67
5.3.240.0000.04314.66
5.3.230.0170.07014.58
5.3.220.0030.04014.56
5.3.210.0070.07714.79
5.3.200.0070.08014.61
5.3.190.0130.07314.57
5.3.180.0030.04314.42
5.3.170.0000.08014.57
5.3.160.0000.06014.63
5.3.150.0070.07314.58
5.3.140.0100.06714.60
5.3.130.0030.05714.52
5.3.120.0100.07314.54
5.3.110.0030.07714.40
5.3.100.0200.05714.07
5.3.90.0070.07314.11
5.3.80.0030.05314.00
5.3.70.0070.04014.02
5.3.60.0070.06714.04
5.3.50.0070.07714.01
5.3.40.0000.04714.00
5.3.30.0100.06713.96
5.3.20.0070.04713.77
5.3.10.0000.06013.68
5.3.00.0100.06713.55
5.2.170.0000.06011.05
5.2.160.0000.04011.25
5.2.150.0000.04711.15
5.2.140.0130.05711.20
5.2.130.0030.04711.32
5.2.120.0000.04311.00
5.2.110.0070.04011.17
5.2.100.0030.06011.10
5.2.90.0100.03311.30
5.2.80.0100.05711.06
5.2.70.0070.04311.12
5.2.60.0070.04011.10
5.2.50.0000.04310.87
5.2.40.0070.04010.84
5.2.30.0000.03711.02
5.2.20.0000.03311.00
5.2.10.0100.05310.82
5.2.00.0030.06710.94
5.1.60.0000.0579.95
5.1.50.0000.0309.92
5.1.40.0030.0539.95
5.1.30.0100.03310.23
5.1.20.0030.03710.25
5.1.10.0100.04010.17
5.1.00.0070.02710.14
5.0.50.0070.0478.60
5.0.40.0000.0308.46
5.0.30.0000.0438.46
5.0.20.0000.0208.46
5.0.10.0030.0378.46
5.0.00.0030.0538.46
4.4.90.0000.0238.46
4.4.80.0000.0178.46
4.4.70.0030.0208.46
4.4.60.0000.0278.46
4.4.50.0030.0338.46
4.4.40.0030.0578.46
4.4.30.0000.0178.46
4.4.20.0070.0308.46
4.4.10.0030.0378.46
4.4.00.0070.0538.46
4.3.110.0000.0378.46
4.3.100.0000.0178.46
4.3.90.0070.0338.46
4.3.80.0070.0308.46
4.3.70.0000.0238.46
4.3.60.0000.0408.46
4.3.50.0070.0338.46
4.3.40.0000.0538.46
4.3.30.0000.0338.46
4.3.20.0030.0338.46
4.3.10.0000.0238.46
4.3.00.0000.0208.46

preferences:
43.33 ms | 401 KiB | 5 Q