3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Standalone { public function nonstatic(){} } 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()) Base::doSomething(); // this will call Vendor::doSomething() :( // do something more } } Standalone::nonstatic();

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.0110.00716.88
8.3.50.0110.01118.27
8.3.40.0060.00918.86
8.3.30.0140.00318.71
8.3.20.0000.00818.95
8.3.10.0050.00520.32
8.3.00.0080.00019.38
8.2.180.0200.00016.75
8.2.170.0070.01022.96
8.2.160.0070.01018.96
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0080.00026.16
8.2.120.0030.00618.60
8.2.110.0060.00321.00
8.2.100.0070.00717.78
8.2.90.0060.00319.41
8.2.80.0070.00019.46
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0050.00318.22
8.2.30.0060.00317.90
8.2.20.0000.00817.60
8.2.10.0070.00017.59
8.2.00.0070.00017.79
8.1.280.0170.00325.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.46
8.1.230.0080.00420.73
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.39
8.1.180.0030.00518.10
8.1.170.0060.00318.84
8.1.160.0070.00018.83
8.1.150.0050.00318.55
8.1.140.0000.00717.28
8.1.130.0000.00717.64
8.1.120.0040.00417.34
8.1.110.0070.00017.22
8.1.100.0000.00717.30
8.1.90.0030.00517.34
8.1.80.0030.00317.32
8.1.70.0040.00417.23
8.1.60.0040.00417.43
8.1.50.0000.00717.31
8.1.40.0000.00817.43
8.1.30.0030.00517.42
8.1.20.0070.00017.50
8.1.10.0020.00517.43
8.1.00.0000.00817.36
8.0.300.0050.00319.91
8.0.290.0050.00316.75
8.0.280.0000.00718.29
8.0.270.0000.00717.07
8.0.260.0030.00316.82
8.0.250.0050.00216.98
8.0.240.0040.00416.98
8.0.230.0040.00416.86
8.0.220.0070.00016.94
8.0.210.0000.00816.87
8.0.200.0050.00216.96
8.0.190.0000.00716.91
8.0.180.0000.00716.92
8.0.170.0090.00016.75
8.0.160.0000.00716.88
8.0.150.0080.00016.87
8.0.140.0040.00416.77
8.0.130.0060.00013.32
8.0.120.0000.00816.88
8.0.110.0030.00316.89
8.0.100.0040.00416.89
8.0.90.0000.00716.77
8.0.80.0100.00416.85
8.0.70.0000.00716.76
8.0.60.0050.00316.95
8.0.50.0040.00416.74
8.0.30.0130.00717.11
8.0.20.0110.01117.13
8.0.10.0000.00817.04
8.0.00.0130.00816.60
7.4.330.0050.00012.86
7.4.320.0030.00316.39
7.4.300.0000.00716.46
7.4.290.0080.00016.46
7.4.280.0030.00616.58
7.4.270.0030.00316.44
7.4.260.0000.00513.19
7.4.250.0070.00016.58
7.4.240.0040.00416.55
7.4.230.0040.00416.42
7.4.220.0100.00716.44
7.4.210.0030.01216.61
7.4.200.0000.00716.54
7.4.190.0080.00016.34
7.4.160.0140.00616.43
7.4.150.0000.02016.40
7.4.140.0150.00316.48
7.4.130.0090.00916.64
7.4.120.0100.01416.64
7.4.110.0070.01016.52
7.4.100.0140.00316.53
7.4.90.0160.00916.55
7.4.80.0100.00719.39
7.4.70.0160.00716.23
7.4.60.0080.00816.29
7.4.50.0050.00316.18
7.4.40.0000.01316.18
7.4.30.0120.00316.11
7.4.00.0080.01014.95
7.3.330.0060.00013.16
7.3.320.0000.00913.15
7.3.310.0030.00316.28
7.3.300.0070.00016.30
7.3.290.0080.00916.32
7.3.280.0110.00516.29
7.3.270.0070.01016.32
7.3.260.0130.00516.48
7.3.250.0110.00716.25
7.3.240.0090.00616.21
7.3.230.0110.00716.31
7.3.210.0060.01016.48
7.3.200.0030.01316.23
7.3.190.0050.01116.33
7.3.180.0100.00716.22
7.3.170.0070.01116.50
7.3.160.0060.01416.32
7.3.120.0080.00614.60
7.3.110.0060.01214.64
7.3.100.0130.00014.94
7.3.90.0030.00614.70
7.3.80.0000.01114.72
7.3.70.0060.00914.74
7.3.60.0120.00014.82
7.3.50.0130.00014.79
7.3.40.0070.00314.67
7.3.30.0070.00714.75
7.3.20.0100.00716.63
7.3.10.0070.00716.55
7.3.00.0110.00316.44
7.2.330.0110.00916.46
7.2.320.0160.00716.33
7.2.310.0060.01616.61
7.2.300.0190.00316.15
7.2.290.0080.00816.57
7.2.250.0030.01615.02
7.2.240.0100.01014.92
7.2.230.0090.00615.03
7.2.220.0120.00014.92
7.2.210.0050.00514.89
7.2.200.0030.00914.83
7.2.190.0120.00614.75
7.2.180.0070.00314.80
7.2.170.0060.00614.77
7.2.60.0070.01016.72
7.2.00.0060.00619.14
7.1.330.0100.00315.80
7.1.320.0000.01215.70
7.1.310.0000.01115.80
7.1.300.0070.00415.53
7.1.290.0000.00915.75
7.1.280.0030.00915.44
7.1.270.0070.01015.35
7.1.260.0070.00415.30
7.1.200.0040.00415.74
7.1.70.0000.00817.09
7.1.60.0040.00717.21
7.1.50.0100.01016.80
7.1.00.0030.04022.54
7.0.200.0030.01216.61
7.0.140.0070.07021.95
7.0.120.0070.07022.16
7.0.60.0000.08319.86
7.0.50.0070.04017.87
7.0.40.0000.05319.96
7.0.30.0230.04720.07
7.0.20.0200.03720.30
7.0.10.0100.06020.07
7.0.00.0030.06320.20
5.6.280.0100.06721.04
5.6.210.0030.07720.51
5.6.200.0130.08318.19
5.6.190.0070.08320.41
5.6.180.0300.08020.33
5.6.170.0230.08720.64
5.6.160.0070.08020.56
5.6.150.0000.07718.14
5.6.140.0170.05018.18
5.6.130.0030.05318.14
5.6.120.0070.05021.02
5.6.110.0030.08720.96
5.6.100.0070.07720.98
5.6.90.0070.04321.00
5.6.80.0170.06320.36
5.5.350.0370.06720.41
5.5.340.0100.06717.95
5.5.330.0030.09020.57
5.5.320.0330.05020.34
5.5.310.0370.07320.32
5.5.300.0100.04017.98
5.5.290.0000.06017.98
5.5.280.0100.08020.99
5.5.270.0130.03320.85
5.5.260.0000.04320.96
5.5.250.0130.07320.71
5.5.240.0000.06320.29
5.4.450.0170.07319.34
5.4.440.0030.06319.47
5.4.430.0070.08019.20
5.4.420.0070.05719.24
5.4.410.0200.06319.32
5.4.400.0070.03718.86
5.4.390.0100.06019.25
5.4.380.0100.06019.24
5.4.370.0100.06318.86
5.4.360.0170.06319.16
5.4.350.0030.05018.86
5.4.340.0000.06019.25
5.4.320.0100.04319.24
5.4.310.0070.05319.08
5.4.300.0200.05019.24
5.4.290.0030.08019.24
5.4.280.0030.06719.16
5.4.270.0030.05018.87
5.4.260.0030.03719.11
5.4.250.0100.04318.84
5.4.240.0070.06719.23
5.4.230.0030.07719.14
5.4.220.0000.04719.24
5.4.210.0200.05319.23
5.4.200.0030.04019.00
5.4.190.0000.07319.13
5.4.180.0100.08018.84
5.4.170.0130.06019.14
5.4.160.0030.05719.13
5.4.150.0030.04018.84
5.4.140.0030.03716.43
5.4.130.0000.06716.44
5.4.120.0070.03716.35
5.4.110.0000.06016.52
5.4.100.0030.04716.35
5.4.90.0070.03316.48
5.4.80.0100.06716.53
5.4.70.0170.02316.45
5.4.60.0000.04716.65
5.4.50.0130.06016.64
5.4.40.0030.04716.26
5.4.30.0070.07716.27
5.4.20.0100.05716.38
5.4.10.0070.07316.38
5.4.00.0130.06715.86
5.3.290.0100.07714.70
5.3.280.0070.06714.63
5.3.270.0070.07014.63
5.3.260.0030.04014.60
5.3.250.0100.03314.75
5.3.240.0170.04014.62
5.3.230.0030.04314.61
5.3.220.0070.07314.56
5.3.210.0000.05014.63
5.3.200.0100.07014.57
5.3.190.0000.04014.57
5.3.180.0000.04714.71
5.3.170.0000.05714.59
5.3.160.0070.07014.58
5.3.150.0030.04714.56
5.3.140.0100.03014.56
5.3.130.0030.05714.69
5.3.120.0070.08014.55
5.3.110.0000.07014.43
5.3.100.0070.07714.04
5.3.90.0000.06014.04
5.3.80.0030.06314.02
5.3.70.0030.04714.04
5.3.60.0070.03314.01
5.3.50.0070.07314.01
5.3.40.0070.04713.97
5.3.30.0000.04013.96
5.3.20.0030.04013.77
5.3.10.0030.03313.83
5.3.00.0030.03313.66
5.2.170.0000.06711.16
5.2.160.0070.06011.07
5.2.150.0030.03311.12
5.2.140.0030.05711.22
5.2.130.0030.02711.11
5.2.120.0030.03011.06
5.2.110.0030.02711.11
5.2.100.0000.03011.11
5.2.90.0030.03011.03
5.2.80.0000.03011.10
5.2.70.0000.03011.11
5.2.60.0000.03011.05
5.2.50.0000.03011.09
5.2.40.0000.03711.00
5.2.30.0000.03010.89
5.2.20.0000.03011.10
5.2.10.0030.02710.83
5.2.00.0100.02010.77
5.1.60.0000.02310.01
5.1.50.0030.0239.91
5.1.40.0030.02310.12
5.1.30.0000.02710.39
5.1.20.0070.03010.36
5.1.10.0000.02710.09
5.1.00.0030.0239.98
5.0.50.0030.0238.61
5.0.40.0030.0208.57
5.0.30.0000.0308.20
5.0.20.0000.0208.11
5.0.10.0100.0108.20
5.0.00.0070.0238.16
4.4.90.0000.0177.93
4.4.80.0000.0137.93
4.4.70.0030.0137.93
4.4.60.0030.0177.93
4.4.50.0000.0137.93
4.4.40.0000.0237.93
4.4.30.0030.0137.93
4.4.20.0030.0137.93
4.4.10.0000.0177.93
4.4.00.0000.0237.93
4.3.110.0000.0137.93
4.3.100.0000.0137.93
4.3.90.0000.0177.93
4.3.80.0030.0237.93
4.3.70.0000.0137.93
4.3.60.0000.0137.93
4.3.50.0000.0177.93
4.3.40.0030.0207.93
4.3.30.0030.0177.93
4.3.20.0000.0177.93
4.3.10.0000.0137.93
4.3.00.0000.0177.93

preferences:
40.93 ms | 401 KiB | 5 Q