3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected static $className = "DataAttributeKey"; public static function getClassName() { echo self::$className; } } class B extends A { protected static $className = "OtherDataAttributeKey"; } B::getClassName();

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.01016.49
8.3.50.0110.00817.38
8.3.40.0040.01418.58
8.3.30.0060.01018.59
8.3.20.0000.00818.66
8.3.10.0000.00820.39
8.3.00.0030.00619.13
8.2.180.0110.00416.75
8.2.170.0070.00722.96
8.2.160.0060.00921.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.75
8.2.110.0060.00321.12
8.2.100.0060.00617.78
8.2.90.0030.00619.20
8.2.80.0000.00919.39
8.2.70.0030.00617.63
8.2.60.0080.00317.92
8.2.50.0030.00518.07
8.2.40.0040.00418.34
8.2.30.0050.00218.12
8.2.20.0050.00317.63
8.2.10.0070.00017.59
8.2.00.0000.00717.47
8.1.280.0140.00325.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00320.58
8.1.230.0060.00620.97
8.1.220.0000.00817.79
8.1.210.0060.00318.83
8.1.200.0030.00617.36
8.1.190.0000.00817.51
8.1.180.0030.00618.10
8.1.170.0100.00018.91
8.1.160.0070.00018.67
8.1.150.0020.00518.50
8.1.140.0030.00517.23
8.1.130.0030.00317.79
8.1.120.0090.00017.23
8.1.110.0040.00417.32
8.1.100.0040.00417.22
8.1.90.0070.00017.18
8.1.80.0030.00317.29
8.1.70.0000.00817.30
8.1.60.0040.00417.39
8.1.50.0000.00917.43
8.1.40.0050.00217.48
8.1.30.0080.00017.55
8.1.20.0040.00417.44
8.1.10.0030.00517.51
8.1.00.0030.00617.44
8.0.300.0060.00319.98
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0030.00317.15
8.0.260.0070.00016.87
8.0.250.0030.00616.92
8.0.240.0020.00516.88
8.0.230.0030.00316.91
8.0.220.0060.00016.81
8.0.210.0000.00716.80
8.0.200.0030.00316.76
8.0.190.0070.00016.82
8.0.180.0070.00016.89
8.0.170.0030.00516.82
8.0.160.0030.00316.74
8.0.150.0040.00416.73
8.0.140.0040.00416.60
8.0.130.0000.00613.19
8.0.120.0080.00016.66
8.0.110.0040.00316.70
8.0.100.0070.00016.82
8.0.90.0070.00016.74
8.0.80.0060.00916.68
8.0.70.0040.00416.61
8.0.60.0000.00716.57
8.0.50.0040.00416.77
8.0.30.0090.00917.03
8.0.20.0150.00416.88
8.0.10.0040.00416.77
8.0.00.0130.00716.50
7.4.330.0000.00512.87
7.4.320.0040.00416.47
7.4.300.0030.00316.49
7.4.290.0040.00416.47
7.4.280.0080.00816.35
7.4.270.0070.00016.55
7.4.260.0000.00613.14
7.4.250.0040.00416.34
7.4.240.0000.00716.32
7.4.230.0070.00016.52
7.4.220.0120.00616.54
7.4.210.0070.00716.45
7.4.200.0000.00816.34
7.4.190.0030.00316.39
7.4.160.0090.00616.50
7.4.150.0070.01416.50
7.4.140.0090.00916.46
7.4.130.0090.01416.38
7.4.120.0070.01016.42
7.4.110.0000.01816.57
7.4.100.0140.00316.42
7.4.90.0030.01716.27
7.4.80.0100.00619.39
7.4.70.0130.00316.55
7.4.60.0080.00816.30
7.4.50.0090.00316.24
7.4.40.0090.00316.42
7.4.30.0040.01116.56
7.4.00.0070.01015.05
7.3.330.0060.00013.18
7.3.320.0000.00613.25
7.3.310.0030.00316.19
7.3.300.0030.00316.20
7.3.290.0000.02016.36
7.3.280.0100.00516.27
7.3.270.0070.01016.14
7.3.260.0030.01516.37
7.3.250.0050.01216.38
7.3.240.0090.00616.20
7.3.230.0090.00916.23
7.3.210.0100.00716.37
7.3.200.0060.00916.40
7.3.190.0090.00916.28
7.3.180.0090.00916.31
7.3.170.0090.00916.27
7.3.160.0090.01216.32
7.3.120.0000.01414.59
7.3.10.0070.00716.83
7.3.00.0070.00716.69
7.2.330.0140.00316.64
7.2.320.0030.01716.33
7.2.310.0150.00616.78
7.2.300.0090.00916.42
7.2.290.0100.00716.24
7.2.130.0100.00316.69
7.2.120.0070.01016.61
7.2.110.0040.01116.79
7.2.100.0040.01116.95
7.2.90.0030.00617.01
7.2.80.0130.00016.71
7.2.70.0090.00616.95
7.2.60.0050.01016.96
7.2.50.0060.00816.84
7.2.40.0030.01016.82
7.2.30.0030.00616.80
7.2.20.0040.00716.96
7.2.10.0040.01117.03
7.2.00.0120.00316.89
7.1.250.0030.01015.48
7.1.200.0000.01015.62
7.1.70.0070.00717.12
7.1.60.0100.01019.40
7.1.50.0080.00316.89
7.1.00.0070.07022.48
7.0.200.0000.00716.41
7.0.140.0030.07722.12
7.0.120.0070.06022.17
7.0.60.0070.06320.05
7.0.50.0030.06717.91
7.0.40.0130.08320.10
7.0.30.0100.04720.34
7.0.20.0370.08020.15
7.0.10.0400.07720.26
7.0.00.0100.08020.20
5.6.280.0030.06720.91
5.6.210.0100.06320.70
5.6.200.0030.09018.16
5.6.190.0070.08320.48
5.6.180.0270.08020.63
5.6.170.0200.05020.55
5.6.160.0030.07720.48
5.6.150.0000.06318.27
5.6.140.0070.07718.20
5.6.130.0070.08318.29
5.6.120.0000.04321.12
5.6.110.0070.08721.00
5.6.100.0100.08021.14
5.6.90.0070.08721.06
5.6.80.0070.07020.43
5.6.70.0170.04320.24
5.5.350.0400.04720.39
5.5.340.0100.08018.08
5.5.330.0070.07320.21
5.5.320.0230.04020.44
5.5.310.0300.05320.28
5.5.300.0100.07318.04
5.5.290.0030.08318.08
5.5.280.0070.05320.85
5.5.270.0070.08720.88
5.5.260.0030.07720.73
5.5.250.0070.08320.70
5.5.240.0100.06720.07
5.4.450.0070.04319.25
5.4.440.0070.07319.30
5.4.430.0130.06719.56
5.4.420.0100.03319.39
5.4.410.0000.05019.44
5.4.400.0030.08019.21
5.4.390.0100.07719.15
5.4.380.0270.05719.24
5.4.370.0070.07319.16
5.4.360.0070.07719.01
5.4.350.0070.06718.92
5.4.340.0030.06319.11
5.4.320.0030.04719.21
5.4.310.0070.03718.85
5.4.300.0070.06319.14
5.4.290.0130.06319.24
5.4.280.0070.04319.23
5.4.270.0000.05019.16
5.4.260.0030.07718.85
5.4.250.0070.07718.84
5.4.240.0070.04719.00
5.4.230.0070.07718.86
5.4.220.0170.07019.16
5.4.210.0100.06719.14
5.4.200.0000.04318.96
5.4.190.0000.05019.23
5.4.180.0030.04319.19
5.4.170.0070.04019.14
5.4.160.0030.08019.18
5.4.150.0100.05018.90
5.4.140.0070.04016.34
5.4.130.0070.04016.42
5.4.120.0070.03316.53
5.4.110.0070.03316.42
5.4.100.0030.04316.44
5.4.90.0030.03716.54
5.4.80.0100.06016.45
5.4.70.0100.04016.46
5.4.60.0070.07016.39
5.4.50.0030.06316.38
5.4.40.0070.05316.36
5.4.30.0100.04016.25
5.4.20.0130.06716.38
5.4.10.0000.07316.38
5.4.00.0130.07015.79
5.3.290.0000.04314.55
5.3.280.0070.08014.51
5.3.270.0070.04314.65
5.3.260.0000.06014.61
5.3.250.0070.05714.66
5.3.240.0030.07014.75
5.3.230.0000.05714.61
5.3.220.0130.02714.62
5.3.210.0000.05014.57
5.3.200.0070.07014.62
5.3.190.0100.03714.72
5.3.180.0100.04014.62
5.3.170.0200.03314.58
5.3.160.0030.07714.59
5.3.150.0170.06314.61
5.3.140.0070.04714.59
5.3.130.0070.07314.46
5.3.120.0030.08314.54
5.3.110.0030.04714.61
5.3.100.0000.04313.95
5.3.90.0030.04314.07
5.3.80.0000.04313.94
5.3.70.0100.03714.01
5.3.60.0100.07013.96
5.3.50.0000.04013.95
5.3.40.0000.04713.94
5.3.30.0000.07013.94
5.3.20.0100.07713.62
5.3.10.0200.03013.65
5.3.00.0100.03013.52
5.2.170.0000.05711.05
5.2.160.0100.02711.30
5.2.150.0070.06011.31
5.2.140.0000.05311.19
5.2.130.0030.03011.27
5.2.120.0030.04711.18
5.2.110.0030.02711.02
5.2.100.0070.06011.26
5.2.90.0070.04711.11
5.2.80.0170.02311.14
5.2.70.0000.06311.13
5.2.60.0030.03710.94
5.2.50.0070.03011.18
5.2.40.0030.04311.15
5.2.30.0030.05311.02
5.2.20.0000.03710.91
5.2.10.0030.05310.75
5.2.00.0000.03010.60
5.1.60.0070.05310.00
5.1.50.0000.05710.13
5.1.40.0070.0309.95
5.1.30.0000.03710.30
5.1.20.0100.04710.27
5.1.10.0000.03010.10
5.1.00.0030.02310.06
5.0.50.0000.0278.45
5.0.40.0000.0238.42
5.0.30.0030.0638.21
5.0.20.0030.0208.36
5.0.10.0000.0338.07
5.0.00.0070.0508.29
4.4.90.0070.0177.83
4.4.80.0000.0407.83
4.4.70.0030.0137.83
4.4.60.0000.0177.83
4.4.50.0000.0177.83
4.4.40.0000.0577.83
4.4.30.0030.0137.83
4.4.20.0030.0337.83
4.4.10.0030.0337.83
4.4.00.0000.0277.83
4.3.110.0070.0307.83
4.3.100.0030.0237.83
4.3.90.0000.0237.83
4.3.80.0100.0237.83
4.3.70.0070.0237.83
4.3.60.0000.0377.83
4.3.50.0070.0137.83
4.3.40.0000.0577.83
4.3.30.0000.0237.83
4.3.20.0000.0277.83
4.3.10.0070.0137.83
4.3.00.0000.0377.83

preferences:
50.17 ms | 401 KiB | 5 Q