3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); abstract class Base { protected function doSomething() { echo 'here we go' . PHP_EOL; } } 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 venture-specific // intention: call grand-parent (Base::doSomething()) parent::doSomething(); // this will call Vendor::doSomething() :( // this would work, without raising a strict error (see https://bugs.php.net/bug.php?id=42016 - not a bug!) Base::doSomething(); // a little more generic, but you need to know about inheritance level: $grandparent = get_parent_class(get_parent_class($this)); $grandparent::doSomething(); // 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.0030.01216.50
8.3.50.0090.00517.26
8.3.40.0080.00818.70
8.3.30.0070.01018.67
8.3.20.0000.00818.68
8.3.10.0040.00418.52
8.3.00.0060.00319.00
8.2.180.0090.00616.38
8.2.170.0110.00422.96
8.2.160.0150.00018.88
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00020.75
8.2.110.0030.00522.08
8.2.100.0090.00317.72
8.2.90.0000.01017.75
8.2.80.0060.00318.78
8.2.70.0050.00317.59
8.2.60.0090.00017.63
8.2.50.0000.00817.63
8.2.40.0040.00417.63
8.2.30.0040.00517.51
8.2.20.0060.00317.63
8.2.10.0040.00417.55
8.2.00.0000.00717.62
8.1.280.0070.00725.92
8.1.270.0000.01023.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.65
8.1.230.0110.00018.97
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0050.00317.13
8.1.190.0080.00017.11
8.1.180.0040.00718.10
8.1.170.0060.00317.62
8.1.160.0000.00818.57
8.1.150.0040.00418.54
8.1.140.0040.00417.30
8.1.130.0000.00717.89
8.1.120.0000.00817.37
8.1.110.0040.00417.34
8.1.100.0000.00817.40
8.1.90.0070.00017.43
8.1.80.0040.00417.41
8.1.70.0050.00217.34
8.1.60.0000.00817.61
8.1.50.0050.00217.51
8.1.40.0040.00417.58
8.1.30.0030.00617.61
8.1.20.0080.00017.55
8.1.10.0070.00017.61
8.1.00.0030.00617.56
8.0.300.0060.00318.77
8.0.290.0030.00516.63
8.0.280.0000.00718.11
8.0.270.0070.00017.22
8.0.260.0030.00316.84
8.0.250.0040.00416.84
8.0.240.0040.00416.80
8.0.230.0070.00016.80
8.0.220.0030.00316.72
8.0.210.0080.00016.82
8.0.200.0000.00616.77
8.0.190.0080.00016.79
8.0.180.0080.00016.74
8.0.170.0040.00416.69
8.0.160.0040.00416.77
8.0.150.0000.00916.75
8.0.140.0040.00416.69
8.0.130.0000.00713.16
8.0.120.0040.00416.78
8.0.110.0040.00416.84
8.0.100.0040.00416.80
8.0.90.0000.00716.71
8.0.80.0070.00716.72
8.0.70.0040.00416.71
8.0.60.0040.00416.70
8.0.50.0000.00716.63
8.0.30.0110.01117.15
8.0.20.0100.00817.01
8.0.10.0000.00716.93
8.0.00.0100.01016.72
7.4.330.0030.00312.86
7.4.320.0030.00316.56
7.4.300.0000.00616.52
7.4.290.0040.00416.63
7.4.280.0040.00416.52
7.4.270.0030.00316.63
7.4.260.0040.00513.30
7.4.250.0060.00316.64
7.4.240.0080.00016.45
7.4.230.0070.00016.63
7.4.220.0100.00716.66
7.4.210.0030.01516.61
7.4.200.0030.00316.42
7.4.190.0000.00716.61
7.4.160.0030.01316.34
7.4.150.0120.01216.74
7.4.140.0170.00316.60
7.4.130.0060.01016.63
7.4.120.0100.00616.55
7.4.110.0040.01816.47
7.4.100.0090.00916.47
7.4.90.0100.00716.42
7.4.80.0100.01119.39
7.4.70.0000.01616.62
7.4.60.0070.01016.50
7.4.50.0060.00616.57
7.4.40.0030.01316.54
7.4.30.0080.00816.28
7.4.00.0070.00914.93
7.3.330.0070.00013.26
7.3.320.0070.00013.21
7.3.310.0000.00616.20
7.3.300.0060.00016.20
7.3.290.0070.00716.31
7.3.280.0050.01116.27
7.3.270.0070.01016.45
7.3.260.0110.00716.52
7.3.250.0130.00816.49
7.3.240.0100.00716.50
7.3.230.0090.00616.28
7.3.210.0070.01016.30
7.3.200.0080.00816.23
7.3.190.0070.01016.61
7.3.180.0030.01316.58
7.3.170.0090.01316.43
7.3.160.0120.00316.53
7.3.120.0050.01214.55
7.3.110.0090.00914.60
7.3.100.0060.00814.72
7.3.90.0050.01014.62
7.3.80.0050.00814.81
7.3.70.0030.01014.77
7.3.60.0030.01214.78
7.3.50.0070.00714.79
7.3.40.0060.00614.60
7.3.30.0030.01014.71
7.3.20.0100.00416.60
7.3.10.0080.00716.47
7.3.00.0070.00916.58
7.2.330.0070.01016.38
7.2.320.0170.00616.65
7.2.310.0140.00816.66
7.2.300.0140.00416.32
7.2.290.0090.00916.86
7.2.250.0070.01414.87
7.2.240.0090.00815.13
7.2.230.0030.01214.95
7.2.220.0020.01015.00
7.2.210.0060.00814.65
7.2.200.0060.00914.95
7.2.190.0080.00815.01
7.2.180.0090.00615.07
7.2.170.0060.00515.03
7.2.160.0070.00714.90
7.2.150.0070.00717.02
7.2.140.0030.01016.98
7.2.130.0050.00816.84
7.2.120.0090.00716.92
7.2.110.0100.00316.76
7.2.100.0050.00716.66
7.2.90.0050.00917.01
7.2.80.0070.00716.92
7.2.70.0060.00716.80
7.2.60.0070.00516.83
7.2.50.0070.00717.01
7.2.40.0060.00616.80
7.2.30.0080.00216.95
7.2.20.0060.00916.86
7.2.10.0040.00716.87
7.2.00.0020.00917.58
7.1.330.0110.00315.80
7.1.320.0100.00515.87
7.1.310.0040.00715.88
7.1.300.0070.00615.72
7.1.290.0030.01415.78
7.1.280.0080.00515.86
7.1.270.0060.00615.75
7.1.260.0070.00515.62
7.1.250.0080.00715.81
7.1.240.0000.01015.72
7.1.230.0120.00315.72
7.1.220.0030.01015.70
7.1.210.0090.00315.83
7.1.200.0100.00115.67
7.1.190.0040.00715.68
7.1.180.0040.00715.73
7.1.170.0030.00715.52
7.1.160.0060.00615.90
7.1.150.0060.00615.91
7.1.140.0040.00915.58
7.1.130.0080.00415.86
7.1.120.0040.00815.63
7.1.110.0000.01015.74
7.1.100.0050.00716.97
7.1.90.0100.00315.68
7.1.80.0090.00615.75
7.1.70.0030.00916.38
7.1.60.0120.00517.56
7.1.50.0080.00816.42
7.1.40.0060.00315.76
7.1.30.0000.01215.88
7.1.20.0090.00615.52
7.1.10.0100.00315.94
7.1.00.0030.03819.00
7.0.330.0100.00015.48
7.0.320.0030.00615.26
7.0.310.0070.00315.47
7.0.300.0070.00415.19
7.0.290.0030.00715.25
7.0.280.0080.00415.16
7.0.270.0030.00615.28
7.0.260.0060.00915.10
7.0.250.0000.01115.50
7.0.240.0080.00015.09
7.0.230.0030.00615.37
7.0.220.0060.00815.38
7.0.210.0000.00815.55
7.0.200.0040.00716.13
7.0.190.0060.00615.41
7.0.180.0060.00615.24
7.0.170.0030.00715.22
7.0.160.0040.01115.52
7.0.150.0030.00615.22
7.0.140.0030.03818.71
7.0.130.0000.01015.30
7.0.120.0020.04218.84
7.0.110.0030.00915.40
7.0.100.0070.00315.31
7.0.90.0060.00315.39
7.0.80.0040.00415.40
7.0.70.0070.00715.24
7.0.60.0210.03517.60
7.0.50.0060.04316.75
7.0.40.0080.04616.71
7.0.30.0130.02516.84
7.0.20.0150.04316.72
7.0.10.0030.02516.75
7.0.00.0040.03716.72
5.6.380.0000.01314.15
5.6.370.0040.00814.02
5.6.360.0000.00914.23
5.6.350.0000.01014.18
5.6.340.0000.00913.97
5.6.330.0000.01214.39
5.6.320.0070.00314.50
5.6.310.0050.00513.97
5.6.300.0040.00414.54
5.6.290.0060.00314.26
5.6.280.0050.04017.78
5.6.270.0000.01214.63
5.6.260.0030.01014.27
5.6.250.0030.00714.32
5.6.240.0000.01014.56
5.6.230.0050.00514.36
5.6.220.0040.00714.57
5.6.210.0080.04317.38
5.6.200.0070.03316.31
5.6.190.0080.02017.52
5.6.180.0150.02117.32
5.6.170.0120.02717.27
5.6.160.0060.02017.42
5.6.150.0080.01716.21
5.6.140.0100.03216.34
5.6.130.0070.04216.22
5.6.120.0130.03717.64
5.6.110.0070.04417.64
5.6.100.0120.03617.53
5.6.90.0050.04617.60
5.6.80.0070.03417.34
5.6.70.0060.00614.07
5.6.60.0090.00314.09
5.6.50.0000.01414.49
5.6.40.0090.00314.35
5.6.30.0030.00613.99
5.6.20.0080.00014.32
5.6.10.0040.00814.32
5.6.00.0080.00614.18
5.5.380.0040.00411.14
5.5.370.0000.00811.25
5.5.360.0070.00011.20
5.5.350.0100.04215.79
5.5.340.0040.02414.53
5.5.330.0060.04115.74
5.5.320.0100.02815.77
5.5.310.0110.02315.68
5.5.300.0050.03614.57
5.5.290.0050.02014.57
5.5.280.0080.04016.04
5.5.270.0030.02516.01
5.5.260.0140.03516.09
5.5.250.0110.03615.75
5.5.240.0120.04215.58
5.5.230.0100.00011.17
5.5.220.0030.00310.93
5.5.210.0000.00711.05
5.5.200.0070.00010.90
5.5.190.0030.00711.23
5.5.180.0030.00310.99
5.5.170.0040.00710.90
5.5.160.0070.00010.90
5.5.150.0060.00011.26
5.5.140.0040.00410.90
5.5.130.0000.00611.33
5.5.120.0060.00311.05
5.5.110.0040.00811.24
5.5.100.0000.00811.17
5.5.90.0000.00910.95
5.5.80.0000.00910.90
5.5.70.0000.00910.90
5.5.60.0040.00410.90
5.5.50.0030.00611.26
5.5.40.0030.00311.23
5.5.30.0030.00311.19
5.5.20.0030.00610.95
5.5.10.0000.01011.10
5.5.00.0000.00811.06
5.4.450.0070.03915.39
5.4.440.0030.04415.23
5.4.430.0110.03715.18
5.4.420.0020.04315.30
5.4.410.0050.02615.18
5.4.400.0020.02214.90
5.4.390.0070.01914.94
5.4.380.0020.02314.99
5.4.370.0050.02015.18
5.4.360.0050.02314.88
5.4.350.0040.02015.05
5.4.340.0100.01415.12
5.4.330.0070.00210.90
5.4.320.0050.02115.03
5.4.310.0060.01814.89
5.4.300.0030.02015.13
5.4.290.0050.02015.08
5.4.280.0030.02015.09
5.4.270.0070.01915.27
5.4.260.0020.02215.11
5.4.250.0050.02115.28
5.4.240.0020.02215.21
5.4.230.0090.01714.95
5.4.220.0030.02115.24
5.4.210.0030.02114.94
5.4.200.0070.02015.13
5.4.190.0020.02814.87
5.4.180.0070.01715.19
5.4.170.0020.02515.02
5.4.160.0030.02314.98
5.4.150.0040.04415.03
5.4.140.0020.02213.69
5.4.130.0040.02413.74
5.4.120.0070.03313.63
5.4.110.0100.01513.71
5.4.100.0050.02213.78
5.4.90.0070.01713.74
5.4.80.0090.02813.66
5.4.70.0060.02513.71
5.4.60.0030.04013.66
5.4.50.0030.02213.68
5.4.40.0020.02713.81
5.4.30.0050.02513.61
5.4.20.0030.02313.89
5.4.10.0030.02513.78
5.4.00.0020.02313.48
5.3.290.0000.02512.79
5.3.280.0060.01712.78
5.3.270.0040.04212.78
5.3.260.0080.03212.76
5.3.250.0050.02812.83
5.3.240.0040.02812.78
5.3.230.0030.02012.77
5.3.220.0040.02412.76
5.3.210.0000.02712.75
5.3.200.0050.01912.75
5.3.190.0030.04412.76
5.3.180.0050.03512.81
5.3.170.0030.02812.76
5.3.160.0080.02212.75
5.3.150.0120.01312.75
5.3.140.0030.02312.76
5.3.130.0000.02412.74
5.3.120.0050.03912.73
5.3.110.0030.02312.74
5.3.100.0060.01812.49
5.3.90.0020.02312.48
5.3.80.0050.02012.49
5.3.70.0030.03112.46
5.3.60.0080.02012.47
5.3.50.0020.02312.46
5.3.40.0020.02412.45
5.3.30.0020.04312.41
5.3.20.0000.02312.26
5.3.10.0020.04112.36
5.3.00.0050.03912.30
5.2.170.0020.03211.05
5.2.160.0030.03311.01
5.2.150.0030.01811.04
5.2.140.0060.03310.98
5.2.130.0060.01511.04
5.2.120.0020.03210.96
5.2.110.0050.02611.02
5.2.100.0070.02310.98
5.2.90.0020.02111.04
5.2.80.0020.03311.07
5.2.70.0000.03211.02
5.2.60.0030.03010.96
5.2.50.0000.01910.94
5.2.40.0050.03010.98
5.2.30.0000.02511.01
5.2.20.0060.02710.93
5.2.10.0070.02710.90
5.2.00.0050.01910.83
5.1.60.0030.03010.48
5.1.50.0030.02310.48
5.1.40.0020.03210.48
5.1.30.0020.03310.64
5.1.20.0060.03010.57
5.1.10.0050.02010.56
5.1.00.0010.02110.48
5.0.50.0010.0149.68
5.0.40.0060.0179.65
5.0.30.0000.0319.64
5.0.20.0030.0259.56
5.0.10.0000.0279.54
5.0.00.0090.0279.60
4.4.90.0010.0189.29
4.4.80.0030.0109.29
4.4.70.0000.0229.29
4.4.60.0000.0199.29
4.4.50.0030.0199.29
4.4.40.0030.0239.29
4.4.30.0020.0169.29
4.4.20.0000.0179.29
4.4.10.0030.0179.29
4.4.00.0030.0299.29
4.3.110.0020.0129.29
4.3.100.0030.0209.29
4.3.90.0030.0159.29
4.3.80.0030.0259.29
4.3.70.0020.0159.29
4.3.60.0020.0139.29
4.3.50.0030.0189.29
4.3.40.0020.0279.29
4.3.30.0020.0179.29
4.3.20.0010.0219.29
4.3.10.0010.0209.29
4.3.00.0020.0109.29

preferences:
46.22 ms | 401 KiB | 5 Q