3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Base { public function doSomething() {} } class Vendor extends Base { public function doSomething() { // do something.. // call parent (Base::doSomething()) parent::doSomething(); // do something more } } class Local extends Vendor { public 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 } } $local = new Local; $local->doSomething();

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.0070.01118.55
8.3.50.0060.01121.86
8.3.40.0110.00418.70
8.3.30.0070.00718.71
8.3.20.0080.00020.13
8.3.10.0080.00022.02
8.3.00.0040.00422.45
8.2.180.0150.00416.50
8.2.170.0120.00322.96
8.2.160.0000.01420.94
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.77
8.2.110.0000.00921.96
8.2.100.0040.00819.39
8.2.90.0040.00419.19
8.2.80.0060.00317.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0060.00618.07
8.2.40.0050.00218.03
8.2.30.0040.00417.87
8.2.20.0000.00717.59
8.2.10.0000.00717.68
8.2.00.0110.00017.62
8.1.280.0030.01425.92
8.1.270.0030.00522.07
8.1.260.0080.00026.35
8.1.250.0090.00028.09
8.1.240.0060.00323.84
8.1.230.0120.00019.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0030.00517.51
8.1.180.0050.00318.10
8.1.170.0000.00818.65
8.1.160.0070.00021.86
8.1.150.0040.00418.63
8.1.140.0040.00717.39
8.1.130.0030.00317.83
8.1.120.0000.00717.36
8.1.110.0050.00217.39
8.1.100.0000.00717.37
8.1.90.0070.00017.25
8.1.80.0070.00017.42
8.1.70.0000.00717.24
8.1.60.0030.00617.45
8.1.50.0050.00317.52
8.1.40.0000.00817.49
8.1.30.0050.00317.59
8.1.20.0000.00817.57
8.1.10.0080.00017.53
8.1.00.0030.00617.53
8.0.300.0040.00418.77
8.0.290.0030.00517.18
8.0.280.0000.00718.29
8.0.270.0040.00417.12
8.0.260.0030.00316.63
8.0.250.0000.00716.88
8.0.240.0000.00816.98
8.0.230.0030.00316.94
8.0.220.0040.00416.72
8.0.210.0000.00616.72
8.0.200.0030.00316.82
8.0.190.0000.00816.87
8.0.180.0040.00416.74
8.0.170.0040.00416.84
8.0.160.0000.00716.88
8.0.150.0000.00716.86
8.0.140.0030.00316.70
8.0.130.0000.00513.22
8.0.120.0020.00516.64
8.0.110.0030.00316.87
8.0.100.0000.00716.85
8.0.90.0000.00816.70
8.0.80.0080.00816.72
8.0.70.0040.00416.84
8.0.60.0000.00716.85
8.0.50.0030.00516.80
8.0.30.0130.00717.18
8.0.20.0130.00517.40
8.0.10.0000.00816.98
8.0.00.0070.02116.74
7.4.330.0000.00515.00
7.4.320.0000.00716.44
7.4.300.0030.00316.61
7.4.290.0070.00416.40
7.4.280.0070.00016.50
7.4.270.0030.00316.53
7.4.260.0070.00016.39
7.4.250.0070.00016.55
7.4.240.0020.00516.62
7.4.230.0040.00416.40
7.4.220.0100.01316.55
7.4.210.0090.00716.65
7.4.200.0000.00716.70
7.4.190.0040.00416.65
7.4.160.0060.00916.23
7.4.150.0100.01017.40
7.4.140.0090.00917.86
7.4.130.0070.01316.40
7.4.120.0070.01016.48
7.4.110.0030.01416.48
7.4.100.0000.01716.57
7.4.90.0140.00316.45
7.4.80.0070.01019.39
7.4.70.0130.01316.63
7.4.60.0110.01116.40
7.4.50.0040.00416.26
7.4.40.0040.01522.77
7.4.30.0110.00716.26
7.4.00.0130.00315.08
7.3.330.0020.00213.09
7.3.320.0030.00313.16
7.3.310.0040.00416.29
7.3.300.0000.00716.22
7.3.290.0110.00416.25
7.3.280.0090.00916.21
7.3.270.0110.00617.40
7.3.260.0100.00616.27
7.3.250.0070.01016.35
7.3.240.0120.00916.40
7.3.230.0090.00816.39
7.3.210.0090.01216.26
7.3.200.0100.01019.39
7.3.190.0130.00816.30
7.3.180.0090.00616.25
7.3.170.0180.00316.49
7.3.160.0110.00616.20
7.3.120.0030.01414.55
7.3.00.0140.00316.16
7.2.330.0070.01716.58
7.2.320.0090.00916.43
7.2.310.0120.00616.63
7.2.300.0070.01416.57
7.2.290.0130.00316.45
7.2.130.0120.00316.67
7.2.120.0070.01016.52
7.2.110.0130.00716.86
7.2.100.0060.01316.47
7.2.90.0030.01016.57
7.2.80.0100.00616.14
7.2.70.0130.00716.68
7.2.60.0050.01116.63
7.2.50.0090.00316.29
7.2.40.0150.00316.35
7.2.30.0070.00716.38
7.2.20.0120.00616.45
7.2.10.0070.01016.74
7.2.00.0130.00316.66
7.1.250.0080.01115.74
7.1.240.0120.00315.41
7.1.230.0060.00915.59
7.1.220.0150.00315.30
7.1.210.0070.01115.57
7.1.200.0070.00615.55
7.1.190.0090.00615.28
7.1.180.0100.00615.54
7.1.170.0090.00815.23
7.1.160.0130.00715.43
7.1.150.0110.00415.31
7.1.140.0110.00415.50
7.1.130.0120.00315.80
7.1.120.0120.00315.57
7.1.110.0130.00315.77
7.1.100.0130.00315.60
7.1.90.0110.00315.45
7.1.80.0150.00415.36
7.1.70.0020.00916.05
7.1.60.0100.01017.61
7.1.50.0090.00516.15
7.1.40.0090.00915.49
7.1.30.0060.00915.39
7.1.20.0130.00315.23
7.1.10.0070.00715.59
7.1.00.0080.04118.96
7.0.330.0040.01415.23
7.0.320.0130.00714.93
7.0.310.0100.00314.98
7.0.300.0070.01314.84
7.0.290.0130.00614.86
7.0.280.0120.00614.99
7.0.270.0100.00715.08
7.0.260.0110.00414.91
7.0.250.0100.00315.03
7.0.240.0060.00915.25
7.0.230.0030.01015.20
7.0.220.0030.01014.67
7.0.210.0060.00914.70
7.0.200.0100.00215.72
7.0.190.0060.00914.99
7.0.180.0160.00614.79
7.0.170.0130.00315.13
7.0.160.0100.00714.99
7.0.150.0030.01015.11
7.0.140.0070.04918.58
7.0.130.0070.00714.98
7.0.120.0120.00315.02
7.0.110.0110.00415.09
7.0.100.0080.04317.48
7.0.90.0230.04017.34
7.0.80.0070.04617.51
7.0.70.0130.01717.72
7.0.60.0140.04217.58
7.0.50.0100.03017.73
7.0.40.0100.02116.71
7.0.30.0070.02516.52
7.0.20.0020.02216.67
7.0.10.0040.02416.74
7.0.00.0070.02216.63
5.6.380.0090.00614.29
5.6.370.0000.01513.95
5.6.360.0120.00314.32
5.6.350.0050.00814.41
5.6.340.0090.00614.27
5.6.330.0040.01114.26
5.6.320.0050.01014.04
5.6.310.0100.00614.51
5.6.300.0070.00714.23
5.6.290.0100.00714.05
5.6.280.0100.03617.52
5.6.270.0120.00813.99
5.6.260.0120.00514.07
5.6.250.0050.04217.39
5.6.240.0110.04117.31
5.6.230.0090.02717.50
5.6.220.0120.03017.44
5.6.210.0070.04517.43
5.6.200.0080.04717.53
5.6.190.0050.03017.58
5.6.180.0050.02917.51
5.6.170.0070.02517.53
5.6.160.0050.02617.55
5.6.150.0070.01917.50
5.6.140.0070.01817.62
5.6.130.0050.02217.46
5.6.120.0080.03717.58
5.6.110.0050.04017.53
5.6.100.0060.04117.52
5.6.90.0040.04417.45
5.6.80.0080.01717.01
5.6.70.0100.01816.97
5.6.60.0000.03117.06
5.6.50.0030.02317.08
5.6.40.0030.02517.37
5.6.30.0080.02417.24
5.6.20.0070.02817.24
5.6.10.0060.02617.20
5.6.00.0070.02717.11
5.5.380.0070.03515.84
5.5.370.0070.03615.68
5.5.360.0070.02615.68
5.5.350.0060.04015.70
5.5.340.0030.04215.92
5.5.330.0030.02915.82
5.5.320.0030.02815.96
5.5.310.0080.02015.93
5.5.300.0050.03015.94
5.5.290.0030.02915.88
5.5.280.0050.04215.96
5.5.270.0020.02315.90
5.5.260.0050.02316.01
5.5.250.0030.02815.87
5.5.240.0020.02615.68
5.5.230.0110.02015.64
5.5.220.0020.02415.73
5.5.210.0060.02015.70
5.5.200.0050.02515.70
5.5.190.0080.02715.64
5.5.180.0030.02515.61
5.5.170.0000.01111.16
5.5.160.0050.02215.56
5.5.150.0030.02315.61
5.5.140.0070.02215.54
5.5.130.0090.01815.64
5.5.120.0030.02115.64
5.5.110.0030.02515.67
5.5.100.0020.02415.48
5.5.90.0050.02515.55
5.5.80.0080.02015.48
5.5.70.0020.02215.57
5.5.60.0020.02615.54
5.5.50.0050.01715.52
5.5.40.0050.02115.58
5.5.30.0030.02015.47
5.5.20.0060.02115.57
5.5.10.0070.02115.62
5.5.00.0020.04115.50
5.4.450.0050.04115.27
5.4.440.0110.03815.10
5.4.430.0090.03415.23
5.4.420.0030.04315.12
5.4.410.0060.02015.19
5.4.400.0030.02314.92
5.4.390.0010.02115.09
5.4.380.0060.02215.05
5.4.370.0050.02215.07
5.4.360.0050.02315.03
5.4.350.0020.02415.08
5.4.340.0030.02215.12
5.4.330.0060.00611.00
5.4.320.0050.02214.93
5.4.310.0050.02015.05
5.4.300.0060.01914.96
5.4.290.0080.01515.02
5.4.280.0040.02115.03
5.4.270.0040.02014.92
5.4.260.0020.02414.97
5.4.250.0070.01515.01
5.4.240.0020.02315.10
5.4.230.0020.02215.04
5.4.220.0020.02315.02
5.4.210.0030.02014.95
5.4.200.0030.02115.04
5.4.190.0020.02015.07
5.4.180.0070.02014.95
5.4.170.0070.01515.07
5.4.160.0060.01915.02
5.4.150.0030.03315.07
5.4.140.0020.03113.74
5.4.130.0050.03313.73
5.4.120.0030.03913.73
5.4.110.0000.04313.77
5.4.100.0100.01713.72
5.4.90.0050.03613.70
5.4.80.0070.03313.74
5.4.70.0040.02513.75
5.4.60.0020.04213.70
5.4.50.0020.02813.70
5.4.40.0030.02613.73
5.4.30.0070.04313.73
5.4.20.0050.03613.74
5.4.10.0030.03913.64
5.4.00.0070.03813.43
5.3.290.0030.02312.83
5.3.280.0050.02312.79
5.3.270.0070.01812.78
5.3.260.0000.02812.85
5.3.250.0050.03812.87
5.3.240.0100.01512.77
5.3.230.0050.04012.79
5.3.220.0050.02712.82
5.3.210.0070.03312.79
5.3.200.0100.03612.86
5.3.190.0040.02312.83
5.3.180.0050.03912.76
5.3.170.0020.04512.84
5.3.160.0020.03812.83
5.3.150.0090.03712.84
5.3.140.0090.02712.78
5.3.130.0060.03112.81
5.3.120.0070.03512.81
5.3.110.0110.03612.79
5.3.100.0020.02112.49
5.3.90.0060.02012.54
5.3.80.0050.03412.46
5.3.70.0000.04512.47
5.3.60.0000.02612.55
5.3.50.0030.04012.48
5.3.40.0070.03812.44
5.3.30.0030.03512.45
5.3.20.0030.02212.42
5.3.10.0050.03512.38
5.3.00.0100.03212.36
5.2.170.0060.02711.03
5.2.160.0080.02511.11
5.2.150.0070.03111.09
5.2.140.0000.02111.07
5.2.130.0030.03211.05
5.2.120.0050.03011.06
5.2.110.0020.03811.06
5.2.100.0020.02011.07
5.2.90.0040.02811.01
5.2.80.0030.01810.98
5.2.70.0050.01610.99
5.2.60.0040.01610.99
5.2.50.0020.02211.01
5.2.40.0060.03011.06
5.2.30.0060.01811.04
5.2.20.0030.03510.96
5.2.10.0050.03310.91
5.2.00.0050.01610.89
5.1.60.0050.02310.54
5.1.50.0030.02910.50
5.1.40.0030.01610.52
5.1.30.0050.02810.60
5.1.20.0080.01310.72
5.1.10.0000.02710.48
5.1.00.0030.02710.48
5.0.50.0050.0239.99
5.0.40.0050.0209.99
5.0.30.0030.0329.99
5.0.20.0030.0109.99
5.0.10.0030.0259.99
5.0.00.0030.0339.99
4.4.90.0020.0199.99
4.4.80.0020.0189.99
4.4.70.0020.0209.99
4.4.60.0020.0149.99
4.4.50.0040.0089.99
4.4.40.0000.0309.99
4.4.30.0020.0129.99
4.4.20.0000.0209.99
4.4.10.0000.0219.99
4.4.00.0030.0259.99
4.3.110.0050.0139.99
4.3.100.0030.0179.99
4.3.90.0050.0089.99
4.3.80.0020.0259.99
4.3.70.0080.0139.99
4.3.60.0020.0129.99
4.3.50.0020.0209.99
4.3.40.0020.0279.99
4.3.30.0020.0139.99
4.3.20.0010.0219.99
4.3.10.0020.0169.99
4.3.00.0020.0199.99

preferences:
66.84 ms | 401 KiB | 5 Q