3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function foo() { echo "success!\n"; } public function test() { $this->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 */ } } $b = new B(); $b->test(); ?>

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.40.0110.00418.80
8.3.30.0090.00619.05
8.3.20.0000.00820.18
8.3.10.0000.00823.65
8.3.00.0050.00320.84
8.2.170.0040.01122.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0080.00019.23
8.2.110.0030.00722.13
8.2.100.0030.01017.84
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0050.00517.50
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0000.00819.88
8.2.30.0080.00318.05
8.2.20.0030.00617.61
8.2.10.0070.00017.99
8.2.00.0040.00417.52
8.1.270.0050.00322.05
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0030.00623.91
8.1.230.0070.00319.16
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0000.00818.41
8.1.160.0000.00722.00
8.1.150.0000.00718.61
8.1.140.0000.00717.35
8.1.130.0000.00717.80
8.1.120.0030.00317.39
8.1.110.0000.00817.24
8.1.100.0030.00317.28
8.1.90.0000.00717.42
8.1.80.0000.00717.35
8.1.70.0000.00717.36
8.1.60.0000.00817.61
8.1.50.0080.00017.49
8.1.40.0030.00517.51
8.1.30.0030.00517.61
8.1.20.0040.00417.61
8.1.10.0000.00717.56
8.1.00.0040.00417.50
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0040.00418.34
8.0.270.0000.00717.27
8.0.260.0000.00717.24
8.0.250.0070.00016.93
8.0.240.0000.00616.87
8.0.230.0000.00716.86
8.0.220.0070.00016.83
8.0.210.0030.00316.87
8.0.200.0000.00716.75
8.0.190.0040.00416.89
8.0.180.0000.00716.88
8.0.170.0000.00816.77
8.0.160.0040.00416.90
8.0.150.0020.00516.77
8.0.140.0030.00616.82
8.0.130.0000.00613.26
8.0.120.0040.00416.79
8.0.110.0080.00016.82
8.0.100.0080.00016.78
8.0.90.0050.00516.74
8.0.80.0030.01316.82
8.0.70.0000.00916.79
8.0.60.0030.00516.70
8.0.50.0040.00416.77
8.0.30.0120.00817.10
8.0.20.0070.01617.40
8.0.10.0040.00416.82
8.0.00.0080.00816.87
7.4.330.0000.00515.00
7.4.320.0030.00316.51
7.4.300.0030.00316.52
7.4.290.0110.00016.52
7.4.280.0080.00016.63
7.4.270.0070.00016.47
7.4.260.0070.00016.56
7.4.250.0030.00516.42
7.4.240.0050.00216.57
7.4.230.0070.00016.70
7.4.220.0130.00316.63
7.4.210.0060.01216.60
7.4.200.0070.00016.49
7.4.160.0060.00916.56
7.4.150.0090.00917.40
7.4.140.0090.00817.86
7.4.130.0100.00816.58
7.4.120.0100.01016.50
7.4.110.0110.00616.46
7.4.100.0100.00716.60
7.4.90.0110.00716.55
7.4.80.0180.00019.39
7.4.70.0040.01816.52
7.4.60.0120.00616.64
7.4.50.0040.00416.32
7.4.40.0060.00916.39
7.4.30.0100.00716.72
7.4.00.0060.00614.71
7.3.330.0000.00513.04
7.3.320.0000.00513.10
7.3.310.0030.00316.23
7.3.300.0030.00316.25
7.3.290.0030.01216.20
7.3.280.0070.01416.22
7.3.270.0100.00717.40
7.3.260.0120.00616.46
7.3.250.0100.00916.22
7.3.240.0100.00716.26
7.3.230.0100.00716.39
7.3.210.0160.00216.54
7.3.200.0060.01619.39
7.3.190.0120.01016.46
7.3.180.0140.00316.26
7.3.170.0100.00716.49
7.3.160.0090.01316.40
7.3.120.0080.00814.73
7.2.330.0080.00816.72
7.2.320.0110.00916.66
7.2.310.0100.01316.68
7.2.300.0040.01616.51
7.2.290.0110.00616.56
7.2.60.0150.00616.84
7.1.200.0040.01215.57
7.1.100.0150.00717.97
7.1.70.0040.01116.90
7.1.60.0120.01219.70
7.1.50.0060.01316.82
7.1.00.0070.07322.31
7.0.200.0000.00916.67
7.0.140.0070.07022.09
7.0.120.0030.06321.91
7.0.110.0070.04022.10
7.0.100.0070.04322.13
7.0.90.0030.04021.93
7.0.80.0030.07322.07
7.0.70.0000.04321.89
7.0.60.0000.04021.88
7.0.50.0030.03722.11
7.0.40.0070.07720.02
7.0.30.0100.07020.05
7.0.20.0030.04320.00
7.0.10.0030.05719.95
7.0.00.0070.08019.89
5.6.280.0000.07721.11
5.6.270.0070.07720.74
5.6.260.0070.08021.04
5.6.250.0030.04021.03
5.6.240.0070.03720.82
5.6.230.0030.07020.98
5.6.220.0130.06721.02
5.6.210.0070.04020.62
5.6.200.0030.04020.75
5.6.190.0000.05720.77
5.6.180.0070.07020.89
5.6.170.0030.05020.77
5.6.160.0030.07020.87
5.6.150.0070.08020.70
5.6.140.0000.08320.77
5.6.130.0070.05020.97
5.6.120.0000.07721.02
5.6.110.0000.04020.74
5.6.100.0000.08020.93
5.6.90.0070.06320.98
5.6.80.0000.04020.18
5.6.70.0030.03320.17
5.6.60.0030.04720.16
5.6.50.0000.05320.37
5.6.40.0070.07020.33
5.6.30.0000.04720.36
5.6.20.0030.08020.39
5.6.10.0070.05020.32
5.6.00.0100.04020.12
5.5.380.0000.04317.64
5.5.370.0070.06017.52
5.5.360.0030.03717.69
5.5.350.0030.04317.45
5.5.340.0000.03718.13
5.5.330.0000.04018.10
5.5.320.0000.04018.13
5.5.310.0070.07718.09
5.5.300.0000.07018.11
5.5.290.0000.07717.85
5.5.280.0070.05718.07
5.5.270.0030.07318.18
5.5.260.0000.04318.25
5.5.250.0030.04717.90
5.5.240.0000.04317.52
5.5.230.0100.04017.45
5.5.220.0030.05017.51
5.5.210.0070.06317.45
5.5.200.0000.03717.61
5.5.190.0070.06717.18
5.5.180.0000.05717.28
5.5.160.0030.05317.58
5.5.150.0000.06017.44
5.5.140.0070.06717.24
5.5.130.0000.06717.48
5.5.120.0000.08017.58
5.5.110.0070.07717.27
5.5.100.0000.04017.40
5.5.90.0000.03717.18
5.5.80.0000.07317.16
5.5.70.0000.07717.17
5.5.60.0030.05717.34
5.5.50.0030.05317.34
5.5.40.0030.05717.15
5.5.30.0070.05717.15
5.5.20.0030.06717.16
5.5.10.0000.06317.36
5.5.00.0000.06017.32
5.4.450.0000.05719.30
5.4.440.0000.07319.60
5.4.430.0000.05319.28
5.4.420.0030.04019.28
5.4.410.0070.03319.28
5.4.400.0000.04019.20
5.4.390.0030.03019.25
5.4.380.0030.03719.18
5.4.370.0070.07319.25
5.4.360.0000.06018.98
5.4.350.0030.06719.09
5.4.340.0030.07019.09
5.4.320.0100.06719.09
5.4.310.0030.07019.17
5.4.300.0000.06319.13
5.4.290.0030.06718.95
5.4.280.0030.03718.89
5.4.270.0070.07018.95
5.4.260.0000.08019.12
5.4.250.0000.06719.02
5.4.240.0100.02718.93
5.4.230.0030.04019.18
5.4.220.0030.07018.92
5.4.210.0000.08018.95
5.4.200.0000.03719.17
5.4.190.0070.07019.12
5.4.180.0000.06318.94
5.4.170.0070.04319.04
5.4.160.0000.04018.93
5.4.150.0000.04319.10
5.4.140.0070.03716.47
5.4.130.0000.07316.35
5.4.120.0100.06016.38
5.4.110.0000.04016.41
5.4.100.0070.05016.57
5.4.90.0000.03716.54
5.4.80.0070.06316.48
5.4.70.0000.07016.64
5.4.60.0000.04316.29
5.4.50.0030.06716.18
5.4.40.0030.06716.52
5.4.30.0000.07716.38
5.4.20.0000.03716.48
5.4.10.0000.05016.47
5.4.00.0030.05715.82
5.3.290.0030.06714.80
5.3.280.0000.06014.61
5.3.270.0030.04314.61
5.3.260.0000.03714.60
5.3.250.0000.03714.69
5.3.240.0000.03714.60
5.3.230.0030.03314.56
5.3.220.0000.06714.58
5.3.210.0000.04714.43
5.3.200.0000.07314.57
5.3.190.0000.05714.54
5.3.180.0000.05714.79
5.3.170.0070.04714.69
5.3.160.0000.06314.57
5.3.150.0000.07314.59
5.3.140.0000.03314.59
5.3.130.0000.06714.68
5.3.120.0000.06714.56
5.3.110.0000.07714.54
5.3.100.0030.07314.17
5.3.90.0030.07314.11
5.3.80.0000.07014.15
5.3.70.0030.05714.05
5.3.60.0000.06714.24
5.3.50.0000.06013.96
5.3.40.0030.06713.95
5.3.30.0000.06313.94
5.3.20.0030.06313.77
5.3.10.0000.06313.64
5.3.00.0000.04313.50
5.2.170.0030.06711.11
5.2.160.0000.03311.13
5.2.150.0030.06011.16
5.2.140.0000.03311.14
5.2.130.0070.06311.24
5.2.120.0030.05711.23
5.2.110.0030.03711.24
5.2.100.0030.04711.08
5.2.90.0000.05011.10
5.2.80.0030.05311.10
5.2.70.0030.05311.10
5.2.60.0000.05011.11
5.2.50.0030.06310.89
5.2.40.0030.03010.86
5.2.30.0070.05010.95
5.2.20.0030.06010.97
5.2.10.0030.03310.84
5.2.00.0070.04710.95
5.1.60.0030.02710.07
5.1.50.0000.0279.82
5.1.40.0030.0279.95
5.1.30.0000.04010.35
5.1.20.0030.03310.34
5.1.10.0030.04010.04
5.1.00.0000.05310.03
5.0.50.0000.0479.68
5.0.40.0030.0339.68
5.0.30.0000.0609.68
5.0.20.0030.0409.68
5.0.10.0000.0209.68
5.0.00.0000.0509.68
4.4.90.0030.0179.68
4.4.80.0000.0339.68
4.4.70.0000.0379.68
4.4.60.0030.0239.68
4.4.50.0030.0309.68
4.4.40.0000.0239.68
4.4.30.0070.0309.68
4.4.20.0000.0339.68
4.4.10.0000.0339.68
4.4.00.0030.0409.68
4.3.110.0000.0139.68
4.3.100.0000.0279.68
4.3.90.0000.0179.68
4.3.80.0000.0509.68
4.3.70.0000.0139.68
4.3.60.0000.0209.68
4.3.50.0030.0309.68
4.3.40.0000.0279.68
4.3.30.0030.0309.68
4.3.20.0030.0239.68
4.3.10.0000.0309.68
4.3.00.0030.0379.68

preferences:
36.34 ms | 400 KiB | 5 Q