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.70.0070.00718.18
8.3.60.0070.00716.63
8.3.50.0100.00716.24
8.3.40.0140.00718.68
8.3.30.0070.00718.58
8.3.20.0030.00518.65
8.3.10.0040.00418.45
8.3.00.0000.00819.13
8.2.180.0090.00916.38
8.2.170.0070.00722.96
8.2.160.0070.01118.87
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.06
8.2.110.0070.00320.86
8.2.100.0080.00417.91
8.2.90.0050.00319.08
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0030.00517.93
8.2.50.0000.00718.03
8.2.40.0050.00319.47
8.2.30.0100.00017.54
8.2.20.0060.00317.54
8.2.10.0080.00017.61
8.2.00.0040.00417.59
8.1.280.0070.00725.92
8.1.270.0000.00823.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.80
8.1.230.0070.00417.83
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0000.01017.22
8.1.190.0080.00017.22
8.1.180.0000.00918.10
8.1.170.0000.00817.62
8.1.160.0030.00519.00
8.1.150.0040.00418.51
8.1.140.0000.00717.38
8.1.130.0030.00317.39
8.1.120.0000.00717.31
8.1.110.0040.00417.39
8.1.100.0070.00017.40
8.1.90.0030.00517.38
8.1.80.0040.00417.32
8.1.70.0070.00017.38
8.1.60.0050.00317.43
8.1.50.0080.00017.50
8.1.40.0040.00417.54
8.1.30.0050.00317.57
8.1.20.0040.00417.55
8.1.10.0000.00717.58
8.1.00.0040.00417.49
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00818.54
8.0.270.0070.00017.27
8.0.260.0060.00016.88
8.0.250.0050.00216.94
8.0.240.0070.00016.83
8.0.230.0040.00416.81
8.0.220.0030.00316.83
8.0.210.0000.00716.85
8.0.200.0050.00216.91
8.0.190.0040.00416.93
8.0.180.0000.00816.75
8.0.170.0000.00916.80
8.0.160.0040.00416.72
8.0.150.0030.00616.67
8.0.140.0040.00416.82
8.0.130.0030.00313.22
8.0.120.0100.00016.77
8.0.110.0030.00516.86
8.0.100.0070.00016.82
8.0.90.0000.00716.94
8.0.80.0040.01116.89
8.0.70.0050.00316.82
8.0.60.0060.00316.71
8.0.50.0000.00816.81
8.0.30.0110.00417.17
8.0.20.0100.01716.97
8.0.10.0000.00717.00
8.0.00.0130.00716.68
7.4.330.0050.00012.92
7.4.320.0030.00316.58
7.4.300.0000.00716.61
7.4.290.0040.00416.43
7.4.280.0000.01016.53
7.4.270.0040.00416.50
7.4.260.0000.00513.33
7.4.250.0000.00816.41
7.4.240.0030.00316.48
7.4.230.0000.00716.40
7.4.220.0110.00716.64
7.4.210.0070.00816.70
7.4.200.0030.00316.68
7.4.190.0000.00716.45
7.4.160.0060.00916.42
7.4.150.0040.01316.48
7.4.140.0100.01317.86
7.4.130.0040.01416.32
7.4.120.0140.00316.51
7.4.110.0130.00616.55
7.4.100.0030.01316.35
7.4.90.0120.00616.48
7.4.80.0060.00919.39
7.4.70.0160.00416.44
7.4.60.0110.00616.45
7.4.50.0060.00616.58
7.4.40.0060.01016.43
7.4.30.0060.00916.53
7.4.00.0040.01414.61
7.3.330.0000.00513.18
7.3.320.0030.00313.09
7.3.310.0030.00316.13
7.3.300.0030.00316.18
7.3.290.0070.00816.25
7.3.280.0150.00016.20
7.3.270.0150.01116.46
7.3.260.0120.00916.41
7.3.240.0100.01316.48
7.3.230.0140.00316.31
7.3.210.0100.00616.27
7.3.200.0070.01416.29
7.3.190.0030.01316.19
7.3.180.0080.00816.18
7.3.170.0100.01016.24
7.3.160.0060.01116.18
7.3.120.0070.00714.66
7.3.10.0160.00316.49
7.3.00.0140.00316.29
7.2.330.0070.01316.62
7.2.320.0000.01716.38
7.2.310.0030.01316.61
7.2.300.0100.00716.71
7.2.290.0070.01116.38
7.2.130.0140.00316.78
7.2.120.0130.00616.78
7.2.110.0060.00616.75
7.2.100.0120.00316.56
7.2.90.0070.01116.79
7.2.80.0140.00616.89
7.2.70.0130.00316.91
7.2.60.0060.00616.88
7.2.50.0120.00616.83
7.2.40.0110.01116.79
7.2.30.0090.00616.81
7.2.20.0100.00316.93
7.2.10.0080.01516.74
7.2.00.0050.01318.22
7.1.250.0100.00715.46
7.1.240.0040.00815.57
7.1.230.0150.00015.75
7.1.220.0040.01115.50
7.1.210.0130.00515.64
7.1.200.0090.00915.61
7.1.190.0090.00615.66
7.1.180.0070.01015.52
7.1.170.0040.00815.56
7.1.160.0170.00415.55
7.1.150.0070.01415.39
7.1.140.0070.00715.54
7.1.130.0150.00415.61
7.1.120.0140.00415.74
7.1.110.0150.00015.68
7.1.100.0160.00615.67
7.1.90.0100.01315.72
7.1.80.0130.00315.74
7.1.70.0100.00316.33
7.1.60.0120.00616.49
7.1.50.0090.01416.15
7.1.40.0100.00715.30
7.1.30.0190.00415.41
7.1.20.0130.01015.63
7.1.10.0140.00915.77
7.1.00.0070.04519.07
7.0.330.0110.00615.23
7.0.320.0040.00715.19
7.0.310.0140.00715.29
7.0.300.0070.01115.30
7.0.290.0090.00615.44
7.0.280.0030.00715.34
7.0.270.0100.00315.27
7.0.260.0060.00915.45
7.0.250.0130.00615.40
7.0.240.0110.01115.43
7.0.230.0080.01515.21
7.0.220.0100.00615.24
7.0.210.0100.01215.45
7.0.200.0060.01015.88
7.0.190.0110.00815.38
7.0.180.0090.01115.40
7.0.170.0160.00315.38
7.0.160.0190.00315.32
7.0.150.0160.00715.43
7.0.140.0080.04318.60
7.0.130.0170.00715.40
7.0.120.0120.03018.67
7.0.110.0040.01515.32
7.0.100.0140.00715.02
7.0.90.0200.00415.32
7.0.80.0080.00815.07
7.0.70.0070.00715.11
7.0.60.0060.04317.65
7.0.50.0090.02016.57
7.0.40.0020.02615.58
7.0.30.0050.02315.62
7.0.20.0020.02615.54
7.0.10.0050.02615.63
7.0.00.0030.03215.46
5.6.380.0090.00914.39
5.6.370.0080.00814.22
5.6.360.0090.00914.57
5.6.350.0000.01113.84
5.6.340.0090.00914.69
5.6.330.0030.01214.41
5.6.320.0090.00914.16
5.6.310.0080.00414.15
5.6.300.0100.00714.55
5.6.290.0160.00314.46
5.6.280.0050.04017.68
5.6.270.0040.00914.25
5.6.260.0090.00614.32
5.6.250.0240.00314.19
5.6.240.0200.00014.29
5.6.230.0080.00414.13
5.6.220.0110.00714.33
5.6.210.0060.03117.29
5.6.200.0050.02416.19
5.6.190.0050.02416.13
5.6.180.0040.02316.25
5.6.170.0020.02616.23
5.6.160.0090.02216.36
5.6.150.0070.04416.19
5.6.140.0030.04716.29
5.6.130.0050.04516.15
5.6.120.0030.04816.26
5.6.110.0070.02516.23
5.6.100.0050.03416.16
5.6.90.0020.02716.17
5.6.80.0050.04015.83
5.6.70.0110.02115.99
5.6.60.0050.04415.85
5.6.50.0070.04215.85
5.6.40.0100.03715.78
5.6.30.0060.03015.81
5.6.20.0100.03715.98
5.6.10.0080.04115.93
5.6.00.0030.03215.95
5.5.380.0050.00510.97
5.5.370.0030.00611.00
5.5.360.0040.00711.10
5.5.350.0140.03815.57
5.5.340.0040.02414.53
5.5.330.0050.02214.41
5.5.320.0050.02214.33
5.5.310.0030.02314.64
5.5.300.0080.02614.71
5.5.290.0030.03014.75
5.5.280.0060.03114.34
5.5.270.0050.03314.56
5.5.260.0070.04514.71
5.5.250.0070.03514.53
5.5.240.0020.02514.13
5.5.230.0120.03714.13
5.5.220.0080.04014.26
5.5.210.0030.04514.21
5.5.200.0030.02414.21
5.5.190.0080.03614.35
5.5.180.0010.03614.14
5.5.170.0050.00311.25
5.5.160.0040.02614.12
5.5.150.0050.03514.27
5.5.140.0040.02614.17
5.5.130.0080.03814.33
5.5.120.0070.02414.14
5.5.110.0060.04014.17
5.5.100.0020.04714.14
5.5.90.0030.03614.22
5.5.80.0030.03814.05
5.5.70.0050.02414.27
5.5.60.0100.01714.19
5.5.50.0110.03514.21
5.5.40.0050.04014.14
5.5.30.0100.02914.22
5.5.20.0030.04614.22
5.5.10.0030.04314.18
5.5.00.0050.03513.95
5.4.450.0100.03815.31
5.4.440.0060.02815.20
5.4.430.0060.02515.32
5.4.420.0050.03015.24
5.4.410.0020.04715.10
5.4.400.0020.04615.09
5.4.390.0080.03215.02
5.4.380.0080.03015.07
5.4.370.0130.03314.88
5.4.360.0050.04014.95
5.4.350.0030.03614.98
5.4.340.0050.04515.03
5.4.330.0040.00910.97
5.4.320.0050.04215.04
5.4.310.0050.04414.98
5.4.300.0100.02314.98
5.4.290.0100.03715.12
5.4.280.0070.02814.99
5.4.270.0010.02714.97
5.4.260.0030.02615.00
5.4.250.0030.03915.12
5.4.240.0020.03415.06
5.4.230.0060.04115.10
5.4.220.0070.04215.18
5.4.210.0070.03715.01
5.4.200.0090.03415.01
5.4.190.0040.02714.98
5.4.180.0100.03814.87
5.4.170.0050.03814.88
5.4.160.0070.03215.04
5.4.150.0090.03015.13
5.4.140.0060.03713.74
5.4.130.0090.03613.66
5.4.120.0070.03913.68
5.4.110.0100.03113.57
5.4.100.0070.04013.69
5.4.90.0060.03113.71
5.4.80.0090.03513.62
5.4.70.0070.04213.61
5.4.60.0070.03313.74
5.4.50.0030.03213.71
5.4.40.0100.03513.73
5.4.30.0070.04113.68
5.4.20.0100.03313.74
5.4.10.0060.02013.54
5.4.00.0080.03713.32
5.3.290.0050.03012.55
5.3.280.0070.02712.61
5.3.270.0050.04012.53
5.3.260.0080.04012.47
5.3.250.0050.03512.63
5.3.240.0040.02612.47
5.3.230.0030.04212.60
5.3.220.0030.04412.50
5.3.210.0050.03612.52
5.3.200.0070.02812.51
5.3.190.0100.03712.54
5.3.180.0110.03012.60
5.3.170.0030.03912.52
5.3.160.0030.03612.67
5.3.150.0060.02812.62
5.3.140.0060.03812.67
5.3.130.0100.03612.58
5.3.120.0050.03512.56
5.3.110.0020.03512.43
5.3.100.0070.03012.31
5.3.90.0000.02412.04
5.3.80.0050.03012.17
5.3.70.0060.02212.20
5.3.60.0060.03612.30
5.3.50.0070.03312.21
5.3.40.0020.03112.13
5.3.30.0050.03812.26
5.3.20.0080.03612.04
5.3.10.0030.02611.95
5.3.00.0030.02511.85
5.2.170.0020.03010.38
5.2.160.0030.03010.39
5.2.150.0050.02110.40
5.2.140.0030.03310.22
5.2.130.0030.02110.19
5.2.120.0040.03410.30
5.2.110.0050.01910.35
5.2.100.0080.01810.34
5.2.90.0030.01810.32
5.2.80.0040.03210.26
5.2.70.0030.03310.30
5.2.60.0050.02110.22
5.2.50.0070.03210.28
5.2.40.0000.03610.18
5.2.30.0100.02810.22
5.2.20.0060.03110.32
5.2.10.0040.02910.20
5.2.00.0050.03110.18
5.1.60.0050.0209.90
5.1.50.0020.0249.88
5.1.40.0070.0159.92
5.1.30.0030.0329.88
5.1.20.0040.0279.93
5.1.10.0020.0359.97
5.1.00.0040.0289.88
5.0.50.0020.0289.88
5.0.40.0040.0229.88
5.0.30.0020.0289.88
5.0.20.0050.0179.88
5.0.10.0030.0179.88
5.0.00.0050.0289.88
4.4.90.0020.0209.88
4.4.80.0020.0129.88
4.4.70.0050.0109.88
4.4.60.0000.0149.88
4.4.50.0060.0169.88
4.4.40.0010.0229.88
4.4.30.0050.0099.88
4.4.20.0030.0109.88
4.4.10.0020.0229.88
4.4.00.0010.0329.88
4.3.110.0020.0179.88
4.3.100.0050.0139.88
4.3.90.0020.0209.88
4.3.80.0020.0189.88
4.3.70.0040.0109.88
4.3.60.0020.0109.88
4.3.50.0050.0089.88
4.3.40.0020.0299.88
4.3.30.0000.0229.88
4.3.20.0000.0179.88
4.3.10.0020.0199.88
4.3.00.0020.0179.88

preferences:
49.99 ms | 401 KiB | 5 Q