3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Base { protected function doSomething() {} } class Vendor extends Base { protected function doSomething() { // do something.. // call parent (Base::doSomething()) parent::doSomething(); // do something more } } class Local extends Vendor { protected function doSomething() { // do something // intention: call grand-parent (Base::doSomething()) parent::doSomething(); // this will call Vendor::doSomething() :( Base::doSomething(); // this would work, without raising a strict error (see https://bugs.php.net/bug.php?id=42016 - not a bug!) // do something more } public function api() { $this->doSomething(); } } $local = new Local; $local->api();

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.0130.00718.15
8.3.50.0090.01217.37
8.3.40.0110.01118.70
8.3.30.0110.00318.35
8.3.20.0060.00318.33
8.3.10.0030.00520.40
8.3.00.0080.00017.38
8.2.180.0140.00716.38
8.2.170.0040.01122.96
8.2.160.0100.00322.08
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.83
8.2.110.0100.00020.93
8.2.100.0070.00417.66
8.2.90.0090.00019.05
8.2.80.0060.00317.91
8.2.70.0060.00317.63
8.2.60.0040.00417.91
8.2.50.0030.00518.07
8.2.40.0000.00718.16
8.2.30.0040.00418.00
8.2.20.0040.00417.58
8.2.10.0040.00417.55
8.2.00.0070.00017.62
8.1.280.0070.00725.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0160.00617.64
8.1.230.0040.00720.85
8.1.220.0040.00418.48
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0090.00017.28
8.1.180.0030.00518.10
8.1.170.0020.00518.75
8.1.160.0060.00318.82
8.1.150.0050.00218.68
8.1.140.0090.00017.43
8.1.130.0070.00017.82
8.1.120.0020.00517.37
8.1.110.0030.00417.46
8.1.100.0020.00517.41
8.1.90.0000.00717.40
8.1.80.0040.00417.41
8.1.70.0000.00717.39
8.1.60.0070.00017.51
8.1.50.0070.00017.46
8.1.40.0040.00417.51
8.1.30.0040.00417.67
8.1.20.0000.00817.57
8.1.10.0040.00417.51
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0050.00316.63
8.0.280.0030.00318.40
8.0.270.0000.00717.12
8.0.260.0030.00316.72
8.0.250.0080.00016.93
8.0.240.0060.00616.77
8.0.230.0070.00016.78
8.0.220.0000.00716.82
8.0.210.0000.00716.74
8.0.200.0030.00616.88
8.0.190.0030.00716.82
8.0.180.0040.00416.82
8.0.170.0050.00316.85
8.0.160.0000.00816.75
8.0.150.0000.00716.73
8.0.140.0000.00716.83
8.0.130.0000.00613.32
8.0.120.0070.00016.77
8.0.110.0040.00416.81
8.0.100.0040.00416.84
8.0.90.0050.00216.89
8.0.80.0120.00316.83
8.0.70.0040.00416.79
8.0.60.0000.00716.79
8.0.50.0000.00716.72
8.0.30.0090.01116.86
8.0.20.0110.01017.12
8.0.10.0050.00216.83
8.0.00.0090.00916.78
7.4.330.0000.00514.77
7.4.320.0060.00016.45
7.4.300.0000.00616.52
7.4.290.0030.00316.59
7.4.280.0060.00516.40
7.4.270.0030.00316.37
7.4.260.0050.00013.39
7.4.250.0050.00316.45
7.4.240.0000.00816.50
7.4.230.0040.00416.51
7.4.220.0100.00716.61
7.4.210.0080.00816.58
7.4.200.0000.00716.63
7.4.190.0040.00416.47
7.4.160.0150.00016.39
7.4.150.0100.00717.07
7.4.140.0100.00717.17
7.4.130.0110.00616.35
7.4.120.0130.00616.40
7.4.110.0060.01216.64
7.4.100.0150.00916.57
7.4.90.0120.00916.45
7.4.80.0040.01319.39
7.4.70.0060.01216.17
7.4.60.0120.00916.54
7.4.50.0050.00516.44
7.4.40.0060.00621.94
7.4.30.0030.01316.39
7.4.00.0040.00914.91
7.3.330.0030.00313.02
7.3.320.0030.00313.20
7.3.310.0040.00416.18
7.3.300.0050.00216.23
7.3.290.0060.00916.24
7.3.280.0050.01016.27
7.3.270.0140.00317.07
7.3.260.0110.01318.24
7.3.250.0140.00716.19
7.3.240.0060.01016.55
7.3.230.0060.01016.42
7.3.210.0190.00316.50
7.3.200.0110.01116.33
7.3.190.0100.00716.47
7.3.180.0040.01216.54
7.3.170.0070.01416.25
7.3.160.0040.01216.11
7.3.120.0100.00714.68
7.3.00.0110.00416.37
7.2.330.0060.01316.21
7.2.320.0180.00416.52
7.2.310.0030.01616.48
7.2.300.0150.00916.59
7.2.290.0100.00616.67
7.2.130.0030.01216.51
7.2.120.0100.00316.48
7.2.110.0150.00016.71
7.2.100.0070.00716.87
7.2.90.0080.00816.53
7.2.80.0060.00616.68
7.2.70.0030.00716.62
7.2.60.0110.00316.73
7.2.50.0060.00616.83
7.2.40.0070.00716.87
7.2.30.0030.01116.61
7.2.20.0090.00916.64
7.2.10.0070.01317.01
7.2.00.0100.00418.12
7.1.250.0070.00715.62
7.1.240.0040.01115.58
7.1.230.0060.00615.67
7.1.220.0030.00615.72
7.1.210.0130.00315.41
7.1.200.0060.00715.59
7.1.190.0000.01115.70
7.1.180.0060.00615.70
7.1.170.0040.00715.64
7.1.160.0030.01015.59
7.1.150.0050.00515.64
7.1.140.0030.00715.52
7.1.130.0070.00715.71
7.1.120.0060.00615.84
7.1.110.0040.00815.84
7.1.100.0020.00716.66
7.1.90.0000.01115.53
7.1.80.0060.00315.48
7.1.70.0020.00816.26
7.1.60.0060.01117.57
7.1.50.0070.00716.22
7.1.40.0040.00815.72
7.1.30.0060.00915.63
7.1.20.0070.00315.66
7.1.10.0030.00615.66
7.1.00.0050.03918.98
7.0.330.0000.01014.96
7.0.320.0040.00814.88
7.0.310.0080.00314.99
7.0.300.0060.00615.25
7.0.290.0030.01015.14
7.0.280.0060.00615.21
7.0.270.0060.00615.43
7.0.260.0000.00715.03
7.0.250.0030.00515.37
7.0.240.0030.01215.34
7.0.230.0030.00715.36
7.0.220.0070.00715.50
7.0.210.0060.00615.41
7.0.200.0030.00815.93
7.0.190.0030.01015.49
7.0.180.0050.00714.93
7.0.170.0120.00015.33
7.0.160.0070.00415.26
7.0.150.0040.00815.37
7.0.140.0050.04018.77
7.0.130.0040.01115.48
7.0.120.0070.02218.65
7.0.110.0070.00415.13
7.0.100.0110.00615.40
7.0.90.0040.00815.16
7.0.80.0070.00715.26
7.0.70.0100.01015.16
7.0.60.0090.03117.68
7.0.50.0050.04516.60
7.0.40.0080.04416.81
7.0.30.0200.04016.88
7.0.20.0210.04016.71
7.0.10.0040.02516.85
7.0.00.0000.04016.79
5.6.380.0100.00314.47
5.6.370.0030.00714.27
5.6.360.0070.00714.51
5.6.350.0030.00714.17
5.6.340.0060.00314.32
5.6.330.0060.00914.69
5.6.320.0080.00314.30
5.6.310.0000.01014.24
5.6.300.0040.00714.52
5.6.290.0030.01014.20
5.6.280.0100.03517.42
5.6.270.0000.01514.18
5.6.260.0000.00914.21
5.6.250.0000.01614.38
5.6.240.0070.00714.36
5.6.230.0040.00714.29
5.6.220.0000.01114.34
5.6.210.0090.04217.36
5.6.200.0050.02316.17
5.6.190.0050.04717.47
5.6.180.1700.02017.38
5.6.170.0170.03417.32
5.6.160.0070.02417.31
5.6.150.0030.04516.28
5.6.140.0130.03316.20
5.6.130.0090.04216.31
5.6.120.0100.03517.75
5.6.110.0020.02917.80
5.6.100.0080.02017.63
5.6.90.0080.04117.55
5.6.80.0090.03717.42
5.6.70.0030.01014.40
5.6.60.0030.01013.93
5.6.50.0070.00714.25
5.6.40.0030.01014.26
5.6.30.0040.01114.46
5.6.20.0070.00414.28
5.6.10.0030.01014.13
5.6.00.0070.00714.25
5.5.380.0060.00311.39
5.5.370.0060.00611.26
5.5.360.0040.01111.25
5.5.350.0230.03315.77
5.5.340.0020.02814.61
5.5.330.0050.02215.84
5.5.320.0130.02315.74
5.5.310.0570.03515.77
5.5.300.0050.02014.62
5.5.290.0000.02914.58
5.5.280.0080.04315.99
5.5.270.0020.03016.02
5.5.260.0100.03416.08
5.5.250.0100.03815.93
5.5.240.0090.03515.62
5.5.230.0030.00711.18
5.5.220.0030.00311.18
5.5.210.0000.00611.18
5.5.200.0090.00011.18
5.5.190.0060.00611.18
5.5.180.0030.00311.18
5.5.170.0030.00711.18
5.5.160.0040.00711.22
5.5.150.0030.00511.18
5.5.140.0040.00411.18
5.5.130.0000.00911.22
5.5.120.0040.00411.18
5.5.110.0080.00011.18
5.5.100.0050.00311.18
5.5.90.0000.00911.18
5.5.80.0000.00911.18
5.5.70.0000.00711.18
5.5.60.0050.00211.18
5.5.50.0030.01011.18
5.5.40.0030.00711.18
5.5.30.0000.00711.18
5.5.20.0030.00311.18
5.5.10.0080.00311.18
5.5.00.0080.00011.23
5.4.450.0060.02015.35
5.4.440.0040.03015.37
5.4.430.0070.03215.24
5.4.420.0020.03315.37
5.4.410.0080.03315.30
5.4.400.0040.02215.21
5.4.390.0070.02515.10
5.4.380.0070.02415.21
5.4.370.0070.02715.17
5.4.360.0020.02915.19
5.4.350.0100.03715.16
5.4.340.0030.02215.21
5.4.330.0030.00311.18
5.4.320.0060.02615.01
5.4.310.0070.03515.17
5.4.300.0080.03015.21
5.4.290.0050.02515.21
5.4.280.0020.04215.17
5.4.270.0030.02415.16
5.4.260.0040.02115.16
5.4.250.0020.03615.20
5.4.240.0080.03715.16
5.4.230.0050.02215.18
5.4.220.0030.02515.02
5.4.210.0030.03415.06
5.4.200.0030.03815.04
5.4.190.0020.04015.08
5.4.180.0110.03315.05
5.4.170.0110.04015.04
5.4.160.0060.01915.20
5.4.150.0070.04115.08
5.4.140.0030.02713.77
5.4.130.0060.03913.82
5.4.120.0050.03713.80
5.4.110.0060.03913.82
5.4.100.0060.03113.84
5.4.90.0050.02213.82
5.4.80.0000.04413.87
5.4.70.0060.03313.83
5.4.60.0030.02613.83
5.4.50.0020.03213.73
5.4.40.0100.03513.76
5.4.30.0030.03313.74
5.4.20.0050.02113.78
5.4.10.0060.04013.77
5.4.00.0020.03313.52
5.3.290.0060.02712.94
5.3.280.0030.03812.91
5.3.270.0070.04012.97
5.3.260.0050.02112.89
5.3.250.0030.02512.89
5.3.240.0030.02512.90
5.3.230.0060.03312.91
5.3.220.0100.03712.83
5.3.210.0050.04212.90
5.3.200.0040.02612.94
5.3.190.0020.02512.91
5.3.180.0050.02112.90
5.3.170.0100.03512.83
5.3.160.0080.03812.90
5.3.150.0050.03312.87
5.3.140.0020.03412.90
5.3.130.0050.02312.88
5.3.120.0050.02212.88
5.3.110.0070.03812.88
5.3.100.0050.02812.61
5.3.90.0030.02212.61
5.3.80.0050.01912.63
5.3.70.0040.04212.57
5.3.60.0000.02912.60
5.3.50.0050.02012.57
5.3.40.0060.03112.61
5.3.30.0050.03312.54
5.3.20.0000.02512.44
5.3.10.0010.02112.43
5.3.00.0030.02212.44
5.2.170.0050.01511.25
5.2.160.0070.02811.20
5.2.150.0060.02811.20
5.2.140.0040.02311.17
5.2.130.0040.01511.13
5.2.120.0000.01911.15
5.2.110.0030.01811.17
5.2.100.0020.01811.16
5.2.90.0020.01711.12
5.2.80.0000.01711.16
5.2.70.0050.01311.22
5.2.60.0040.01811.12
5.2.50.0000.01911.13
5.2.40.0010.01811.06
5.2.30.0030.01611.11
5.2.20.0020.01611.10
5.2.10.0070.02710.98
5.2.00.0050.01311.02
5.1.60.0030.01310.54
5.1.50.0050.01110.67
5.1.40.0020.01510.65
5.1.30.0000.01710.78
5.1.20.0060.01210.79
5.1.10.0040.01310.62
5.1.00.0030.01310.64
5.0.50.0020.0109.89
5.0.40.0000.0129.83
5.0.30.0040.0159.68
5.0.20.0000.0129.76
5.0.10.0040.0109.71
5.0.00.0060.0299.66
4.4.90.0020.0109.62
4.4.80.0000.0099.62
4.4.70.0040.0089.62
4.4.60.0020.0129.62
4.4.50.0020.0199.62
4.4.40.0020.0139.62
4.4.30.0020.0109.62
4.4.20.0030.0089.62
4.4.10.0030.0089.62
4.4.00.0030.0129.62
4.3.110.0020.0089.62
4.3.100.0030.0089.62
4.3.90.0020.0109.62
4.3.80.0000.0149.62
4.3.70.0000.0109.62
4.3.60.0040.0079.62
4.3.50.0030.0089.62
4.3.40.0000.0169.62
4.3.30.0010.0079.62
4.3.20.0000.0109.62
4.3.10.0000.0099.62
4.3.00.0020.0109.62

preferences:
48.66 ms | 401 KiB | 5 Q