3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { public static function status() { self::getStatus(); } protected static function getStatus() { echo "Person is alive"; } } //If we call Person::status() we will see "Person is alive" . Now consider what happens when we make a class that inherits from this: class Deceased extends Person { protected static function getStatus() { echo "Person is deceased"; } } Deceased::status();

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.40.0120.00318.90
8.3.30.0080.00620.34
8.3.20.0000.00820.16
8.3.10.0040.00422.10
8.3.00.0080.00022.32
8.2.170.0100.01022.96
8.2.160.0060.01022.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0120.00320.51
8.2.110.0090.00022.25
8.2.100.0080.00417.64
8.2.90.0060.00317.63
8.2.80.0040.00418.09
8.2.70.0030.00517.90
8.2.60.0000.00817.91
8.2.50.0000.00818.10
8.2.40.0040.00420.59
8.2.30.0040.00419.48
8.2.20.0000.00817.40
8.2.10.0000.00817.54
8.2.00.0090.00317.56
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00421.98
8.1.230.0070.00718.88
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.49
8.1.160.0080.00018.68
8.1.150.0040.00418.51
8.1.140.0000.00817.32
8.1.130.0030.00317.32
8.1.120.0040.00417.30
8.1.110.0050.00217.30
8.1.100.0000.00717.31
8.1.90.0030.00517.21
8.1.80.0000.00717.33
8.1.70.0030.00517.32
8.1.60.0080.00017.43
8.1.50.0040.00417.47
8.1.40.0040.00417.36
8.1.30.0070.00017.53
8.1.20.0040.00417.52
8.1.10.0050.00317.48
8.1.00.0000.00817.31
8.0.300.0000.00719.66
8.0.290.0080.00016.63
8.0.280.0040.00418.35
8.0.270.0080.00017.25
8.0.260.0000.00616.72
8.0.250.0030.00316.77
8.0.240.0040.00416.79
8.0.230.0040.00416.89
8.0.220.0030.00316.83
8.0.210.0030.00316.73
8.0.200.0060.00016.78
8.0.190.0000.00916.91
8.0.180.0070.00016.81
8.0.170.0030.00516.77
8.0.160.0040.00416.79
8.0.150.0000.00816.74
8.0.140.0030.00516.77
8.0.130.0000.00513.32
8.0.120.0000.00716.81
8.0.110.0000.00816.69
8.0.100.0000.00716.79
8.0.90.0000.00716.79
8.0.80.0070.01316.82
8.0.70.0070.00016.82
8.0.60.0040.00416.66
8.0.50.0040.00416.72
8.0.30.0120.00717.13
8.0.20.0120.00617.40
8.0.10.0000.00716.79
8.0.00.0030.01316.78
7.4.330.0050.00016.71
7.4.320.0060.00016.34
7.4.300.0030.00316.65
7.4.290.0030.00316.60
7.4.280.0040.00416.61
7.4.270.0060.00016.55
7.4.260.0000.00613.25
7.4.250.0040.00416.47
7.4.240.0000.00716.59
7.4.230.0000.00716.55
7.4.220.0140.00616.55
7.4.210.0080.00716.51
7.4.200.0000.00716.64
7.4.190.0000.00816.33
7.4.160.0110.00616.50
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0130.00416.50
7.4.120.0120.00416.32
7.4.110.0130.00316.55
7.4.100.0100.00716.43
7.4.90.0130.01016.39
7.4.80.0090.01419.39
7.4.70.0030.01316.48
7.4.60.0120.00716.23
7.4.50.0050.00016.34
7.4.40.0120.00322.77
7.4.30.0100.00516.39
7.4.00.0120.00315.09
7.3.330.0000.00513.24
7.3.320.0000.00613.23
7.3.310.0070.00016.22
7.3.300.0030.00316.23
7.3.290.0040.00916.22
7.3.280.0070.00916.21
7.3.270.0070.01017.40
7.3.260.0130.00316.18
7.3.250.0140.00516.37
7.3.240.0110.01116.50
7.3.230.0070.01016.43
7.3.210.0150.00416.18
7.3.200.0040.01519.39
7.3.190.0060.01016.38
7.3.180.0030.01316.43
7.3.170.0090.01216.27
7.3.160.0120.00316.20
7.3.120.0080.00814.43
7.3.110.0040.01414.84
7.3.100.0090.00614.69
7.3.90.0160.00014.46
7.3.80.0000.01414.55
7.3.70.0070.00714.62
7.3.60.0040.00814.55
7.3.50.0070.00714.66
7.3.40.0030.01514.71
7.3.30.0030.01614.74
7.3.20.0080.00816.64
7.3.10.0040.01416.58
7.3.00.0070.01016.30
7.2.330.0120.00816.50
7.2.320.0070.01016.73
7.2.310.0100.00716.66
7.2.300.0070.01016.19
7.2.290.0140.00816.36
7.2.240.0090.00914.84
7.2.230.0030.01014.44
7.2.220.0060.01014.70
7.2.210.0070.01314.66
7.2.200.0070.00715.05
7.2.190.0050.00514.69
7.2.180.0110.00714.94
7.2.170.0100.01014.90
7.2.160.0040.01114.85
7.2.150.0000.01016.91
7.2.140.0120.00316.75
7.2.130.0100.01016.62
7.2.120.0070.00416.64
7.2.110.0060.01316.77
7.2.100.0000.01316.89
7.2.90.0110.00616.86
7.2.80.0070.00716.52
7.2.70.0030.01316.96
7.2.60.0070.00716.89
7.2.50.0060.00316.54
7.2.40.0070.00316.80
7.2.30.0030.01216.70
7.2.20.0060.00916.77
7.2.10.0100.00016.76
7.2.00.0070.00716.73
7.1.330.0130.00015.54
7.1.320.0100.00615.64
7.1.310.0090.00615.49
7.1.300.0060.01215.50
7.1.290.0050.01315.54
7.1.280.0080.00815.79
7.1.270.0070.00715.66
7.1.260.0130.00315.66
7.1.250.0030.00815.50
7.1.200.0180.00715.63
7.1.100.0040.00718.07
7.1.70.0120.00316.71
7.1.60.0200.00319.18
7.1.50.0240.00634.39
7.1.00.0030.03322.46
7.0.200.0080.00016.82
7.0.140.0000.07722.12
7.0.100.0270.07319.89
7.0.90.0170.07719.89
7.0.80.0200.06319.93
7.0.70.0200.07320.01
7.0.60.0100.07719.97
7.0.50.0270.06020.30
7.0.40.0130.08320.14
7.0.30.0100.08320.11
7.0.20.0070.04320.13
7.0.10.0030.07019.99
7.0.00.0100.05019.94
5.6.280.0000.07720.87
5.6.250.0100.05020.57
5.6.240.0070.08020.70
5.6.230.0030.08020.58
5.6.220.0130.06020.50
5.6.210.0070.08020.67
5.6.200.0000.08321.09
5.6.190.0070.08021.04
5.6.180.0070.07721.06
5.6.170.0000.06021.06
5.6.160.0070.07021.03
5.6.150.0130.06021.07
5.6.140.0030.04721.05
5.6.130.0100.07021.04
5.6.120.0100.04321.09
5.6.110.0000.05321.10
5.6.100.0070.08721.10
5.6.90.0130.06321.02
5.6.80.0070.07020.34
5.6.70.0030.08020.46
5.6.60.0130.07020.30
5.6.50.0200.04720.50
5.6.40.0000.06320.30
5.6.30.0030.05320.38
5.6.20.0070.08020.32
5.6.10.0070.08320.43
5.6.00.0070.04320.28
5.5.380.0030.08020.36
5.5.370.0100.04720.37
5.5.360.0030.08720.39
5.5.350.0070.08320.46
5.5.340.0100.08320.80
5.5.330.0030.05020.73
5.5.320.0100.07320.84
5.5.310.0070.07320.73
5.5.300.0100.04320.91
5.5.290.0070.08720.91
5.5.280.0070.08320.89
5.5.270.0030.04320.88
5.5.260.0270.03320.91
5.5.250.0200.06720.70
5.5.240.0030.08020.29
5.5.230.0200.07320.25
5.5.220.0100.07720.02
5.5.210.0100.07720.24
5.5.200.0100.07320.23
5.5.190.0130.08020.21
5.5.180.0070.08020.28
5.5.160.0100.08020.29
5.5.150.0070.06720.09
5.5.140.0030.07720.13
5.5.130.0000.07720.22
5.5.120.0070.07720.18
5.5.110.0070.05320.12
5.5.100.0130.03720.08
5.5.90.0100.07320.16
5.5.80.0130.06720.09
5.5.70.0070.07320.05
5.5.60.0000.08020.00
5.5.50.0100.06320.10
5.5.40.0030.06720.06
5.5.30.0030.07720.06
5.5.20.0170.06720.09
5.5.10.0100.04020.05
5.5.00.0100.07719.98
5.4.450.0130.08019.38
5.4.440.0100.07719.45
5.4.430.0100.06319.55
5.4.420.0100.04719.50
5.4.410.0070.05319.23
5.4.400.0070.08018.90
5.4.390.0030.07719.21
5.4.380.0030.08319.21
5.4.370.0030.07319.09
5.4.360.0170.06719.16
5.4.350.0070.05718.91
5.4.340.0030.07018.85
5.4.320.0070.04018.90
5.4.310.0130.05319.11
5.4.300.0100.07019.23
5.4.290.0130.07018.85
5.4.280.0030.04319.16
5.4.270.0100.06719.16
5.4.260.0100.06718.85
5.4.250.0000.05019.02
5.4.240.0070.05719.11
5.4.230.0070.06719.04
5.4.220.0030.08319.14
5.4.210.0100.07319.02
5.4.200.0170.03019.08
5.4.190.0170.06719.07
5.4.180.0130.06319.11
5.4.170.0170.06319.15
5.4.160.0130.04719.02
5.4.150.0100.06319.13
5.4.140.0070.04316.51
5.4.130.0100.07016.48
5.4.120.0200.05716.24
5.4.110.0070.07316.45
5.4.100.0030.06716.54
5.4.90.0070.07316.56
5.4.80.0100.03716.50
5.4.70.0070.06716.59
5.4.60.0070.05016.48
5.4.50.0100.07316.30
5.4.40.0130.06316.54
5.4.30.0130.04016.36
5.4.20.0100.06016.45
5.4.10.0030.04316.47
5.4.00.0000.06015.77
5.3.290.0030.08014.72
5.3.280.0030.05014.55
5.3.270.0030.07714.59
5.3.260.0100.08314.67
5.3.250.0030.07014.55
5.3.240.0070.07314.70
5.3.230.0000.04714.55
5.3.220.0070.07714.68
5.3.210.0100.06714.71
5.3.200.0030.08714.52
5.3.190.0100.07014.53
5.3.180.0070.07314.63
5.3.170.0100.07314.51
5.3.160.0100.04714.66
5.3.150.0070.04014.52
5.3.140.0070.05014.51
5.3.130.0070.07014.48
5.3.120.0030.06714.55
5.3.110.0030.06014.67
5.3.100.0070.07014.10
5.3.90.0070.07013.97
5.3.80.0100.07014.02
5.3.70.0070.06313.91
5.3.60.0070.07014.02
5.3.50.0070.07314.01
5.3.40.0030.07014.01
5.3.30.0030.05013.93
5.3.20.0070.07013.61
5.3.10.0130.02713.54
5.3.00.0030.04013.59
5.2.170.0030.04711.27
5.2.160.0070.05311.21
5.2.150.0130.05311.25
5.2.140.0100.03011.13
5.2.130.0070.03011.15
5.2.120.0070.06011.13
5.2.110.0130.04311.10
5.2.100.0000.06311.10
5.2.90.0030.03011.22
5.2.80.0030.05711.10
5.2.70.0000.05011.12
5.2.60.0000.03310.99
5.2.50.0100.05711.14
5.2.40.0130.04010.89
5.2.30.0030.03010.88
5.2.20.0070.06011.08
5.2.10.0000.03710.93
5.2.00.0070.05310.63
5.1.60.0000.0579.99
5.1.50.0030.02710.04
5.1.40.0070.05310.08
5.1.30.0100.05310.41
5.1.20.0070.05310.49
5.1.10.0070.04710.06
5.1.00.0000.0339.91
5.0.50.0030.0278.56
5.0.40.0000.0308.42
5.0.30.0000.0538.29
5.0.20.0000.0238.28
5.0.10.0070.0408.11
5.0.00.0030.0608.23
4.4.90.0030.0378.11
4.4.80.0100.0308.11
4.4.70.0030.0378.11
4.4.60.0000.0178.11
4.4.50.0030.0138.11
4.4.40.0000.0538.11
4.4.30.0070.0278.11
4.4.20.0000.0338.11
4.4.10.0070.0138.11
4.4.00.0030.0238.11
4.3.110.0000.0378.11
4.3.100.0000.0278.11
4.3.90.0030.0338.11
4.3.80.0030.0408.11
4.3.70.0000.0378.11
4.3.60.0070.0138.11
4.3.50.0000.0308.11
4.3.40.0000.0238.11
4.3.30.0030.0278.11
4.3.20.0000.0278.11
4.3.10.0000.0278.11
4.3.00.0000.0238.11

preferences:
45.18 ms | 400 KiB | 5 Q