3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected static $className = "DataAttributeKey"; public static function getClassName() { echo static::$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.0090.00616.75
8.3.50.0080.01117.34
8.3.40.0060.01018.67
8.3.30.0100.00718.55
8.3.20.0050.00318.48
8.3.10.0050.00320.34
8.3.00.0080.00019.26
8.2.180.0140.00416.63
8.2.170.0040.01122.96
8.2.160.0130.00721.11
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0040.00421.14
8.2.110.0030.00721.07
8.2.100.0040.00717.78
8.2.90.0000.01019.48
8.2.80.0040.00419.46
8.2.70.0000.00817.38
8.2.60.0070.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00818.22
8.2.30.0080.00017.96
8.2.20.0040.00417.75
8.2.10.0040.00417.48
8.2.00.0030.00517.71
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0080.00320.71
8.1.230.0040.00820.88
8.1.220.0060.00317.74
8.1.210.0040.00418.90
8.1.200.0060.00317.10
8.1.190.0000.00717.28
8.1.180.0000.00818.10
8.1.170.0030.00618.86
8.1.160.0030.00518.65
8.1.150.0040.00418.50
8.1.140.0080.00017.36
8.1.130.0030.00317.73
8.1.120.0040.00417.23
8.1.110.0000.00717.37
8.1.100.0050.00217.30
8.1.90.0000.00717.32
8.1.80.0050.00317.30
8.1.70.0030.00317.20
8.1.60.0070.00017.49
8.1.50.0070.00017.37
8.1.40.0000.00817.41
8.1.30.0000.00717.57
8.1.20.0040.00417.60
8.1.10.0040.00417.41
8.1.00.0030.00517.49
8.0.300.0000.00819.98
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0060.00017.25
8.0.260.0000.00616.80
8.0.250.0040.00416.96
8.0.240.0040.00416.82
8.0.230.0070.00016.86
8.0.220.0030.00316.73
8.0.210.0000.00716.72
8.0.200.0030.00316.81
8.0.190.0090.00016.83
8.0.180.0040.00416.84
8.0.170.0000.00816.79
8.0.160.0040.00416.86
8.0.150.0040.00416.71
8.0.140.0040.00416.61
8.0.130.0030.00313.15
8.0.120.0040.00416.70
8.0.110.0050.00316.86
8.0.100.0040.00416.78
8.0.90.0080.00016.62
8.0.80.0150.00416.71
8.0.70.0050.00316.67
8.0.60.0030.00616.62
8.0.50.0040.00416.61
8.0.30.0110.01116.79
8.0.20.0060.01117.33
8.0.10.0020.00516.74
8.0.00.0110.00716.64
7.4.330.0050.00012.86
7.4.320.0060.00016.29
7.4.300.0000.00616.44
7.4.290.0080.00016.55
7.4.280.0040.00416.53
7.4.270.0000.00816.59
7.4.260.0000.00513.30
7.4.250.0060.00316.43
7.4.240.0040.00416.45
7.4.230.0030.00316.62
7.4.220.0090.01216.32
7.4.210.0090.00716.47
7.4.200.0030.00516.18
7.4.190.0040.00416.39
7.4.160.0060.00916.29
7.4.150.0100.00716.39
7.4.140.0120.01016.39
7.4.130.0100.00916.51
7.4.120.0070.01216.55
7.4.110.0050.01616.63
7.4.100.0140.01016.43
7.4.90.0100.01416.27
7.4.80.0130.01019.39
7.4.70.0100.00616.45
7.4.60.0150.00316.46
7.4.50.0070.00016.51
7.4.40.0030.00916.36
7.4.30.0030.01316.25
7.4.00.0120.00314.81
7.3.330.0060.00013.29
7.3.320.0030.00313.29
7.3.310.0030.00316.32
7.3.300.0030.00316.10
7.3.290.0160.00316.28
7.3.280.0070.01016.30
7.3.270.0040.01216.29
7.3.260.0160.00616.32
7.3.250.0070.01116.25
7.3.240.0060.00916.26
7.3.230.0080.00916.43
7.3.210.0130.00316.14
7.3.200.0090.00616.33
7.3.190.0060.01216.47
7.3.180.0150.00616.15
7.3.170.0070.01016.30
7.3.160.0030.01616.42
7.3.120.0130.00314.82
7.3.10.0060.00316.56
7.3.00.0030.01016.68
7.2.330.0070.01016.73
7.2.320.0130.00316.73
7.2.310.0110.01416.57
7.2.300.0070.01016.70
7.2.290.0060.01216.43
7.2.130.0080.00616.80
7.2.120.0090.00316.89
7.2.110.0100.00316.98
7.2.100.0090.00616.65
7.2.90.0100.00316.44
7.2.80.0040.00816.83
7.2.70.0050.00516.80
7.2.60.0030.00716.78
7.2.50.0070.00716.75
7.2.40.0080.00416.60
7.2.30.0080.00316.72
7.2.20.0040.00716.70
7.2.10.0110.00316.91
7.2.00.0040.00818.22
7.1.250.0080.00515.53
7.1.100.0070.00718.05
7.1.70.0030.00716.94
7.1.60.0090.01619.40
7.1.50.0120.01216.76
7.1.00.0000.07022.28
7.0.200.0140.00414.93
7.0.140.0000.07721.99
7.0.120.0130.06322.01
7.0.60.0030.04320.02
7.0.50.0130.08017.91
7.0.40.0070.06720.25
7.0.30.0330.04020.25
7.0.20.0300.07720.18
7.0.10.0070.05720.25
7.0.00.0030.04320.20
5.6.280.0030.07320.81
5.6.210.0200.07020.47
5.6.200.0170.07018.23
5.6.190.0030.05320.47
5.6.180.0330.06720.58
5.6.170.0270.06720.57
5.6.160.0070.06020.54
5.6.150.0030.07318.20
5.6.140.0070.03718.17
5.6.130.0030.04018.17
5.6.120.0130.05321.01
5.6.110.0170.08020.98
5.6.100.0030.09020.98
5.6.90.0030.04720.98
5.6.80.0070.07020.41
5.5.350.0170.03020.39
5.5.340.0130.07317.97
5.5.330.0030.07020.41
5.5.320.0500.06020.51
5.5.310.0400.07320.34
5.5.300.0030.04317.98
5.5.290.0070.06017.92
5.5.280.0070.08320.90
5.5.270.0070.07720.95
5.5.260.0000.07720.77
5.5.250.0100.05720.66
5.5.240.0030.06320.16
5.4.450.0030.05319.47
5.4.440.0030.08019.56
5.4.430.0030.05319.43
5.4.420.0070.04019.18
5.4.410.0100.05319.05
5.4.400.0070.07318.88
5.4.390.0130.07318.85
5.4.380.0070.04019.25
5.4.370.0070.05719.16
5.4.360.0130.06719.00
5.4.350.0000.07718.94
5.4.340.0000.07318.97
5.4.320.0130.03019.14
5.4.310.0070.04018.85
5.4.300.0070.03319.18
5.4.290.0100.05319.24
5.4.280.0200.06719.14
5.4.270.0070.04718.92
5.4.260.0100.06719.14
5.4.250.0000.04319.23
5.4.240.0070.07018.87
5.4.230.0130.06718.84
5.4.220.0170.06719.26
5.4.210.0130.06718.86
5.4.200.0230.05318.91
5.4.190.0030.07318.86
5.4.180.0170.08018.86
5.4.170.0070.07718.86
5.4.160.0030.07718.98
5.4.150.0030.04318.90
5.4.140.0030.04016.37
5.4.130.0070.06016.36
5.4.120.0100.07016.36
5.4.110.0100.04316.44
5.4.100.0100.07016.44
5.4.90.0070.07716.35
5.4.80.0030.07316.46
5.4.70.0030.05016.46
5.4.60.0030.05716.65
5.4.50.0170.04016.23
5.4.40.0130.06016.43
5.4.30.0100.06016.25
5.4.20.0170.03716.50
5.4.10.0170.06316.39
5.4.00.0070.07715.80
5.3.290.0030.04014.58
5.3.280.0030.07714.59
5.3.270.0000.05314.63
5.3.260.0070.04014.62
5.3.250.0130.06714.63
5.3.240.0100.05714.65
5.3.230.0070.05714.61
5.3.220.0100.06014.61
5.3.210.0100.07014.48
5.3.200.0000.05014.61
5.3.190.0070.08314.62
5.3.180.0030.07714.56
5.3.170.0100.04314.56
5.3.160.0200.06314.58
5.3.150.0070.07014.59
5.3.140.0100.07014.73
5.3.130.0100.07314.60
5.3.120.0100.07714.54
5.3.110.0000.08014.55
5.3.100.0030.05014.03
5.3.90.0070.07013.94
5.3.80.0130.05313.94
5.3.70.0000.05314.16
5.3.60.0070.04713.95
5.3.50.0070.03313.95
5.3.40.0100.07014.09
5.3.30.0030.08013.93
5.3.20.0030.04713.75
5.3.10.0030.07313.80
5.3.00.0000.05313.58
5.2.170.0000.03311.15
5.2.160.0030.05711.14
5.2.150.0030.05711.20
5.2.140.0130.05711.31
5.2.130.0130.05311.09
5.2.120.0070.04711.15
5.2.110.0000.05011.11
5.2.100.0070.05711.15
5.2.90.0030.05711.07
5.2.80.0030.06011.12
5.2.70.0170.05311.05
5.2.60.0100.05711.09
5.2.50.0030.05010.96
5.2.40.0070.05310.92
5.2.30.0100.06010.86
5.2.20.0100.05010.88
5.2.10.0000.04010.82
5.2.00.0030.03010.71
5.1.60.0000.05310.15
5.1.50.0070.0239.90
5.1.40.0170.0409.93
5.1.30.0000.06010.25
5.1.20.0030.02710.24
5.1.10.0030.02710.00
5.1.00.0000.05010.11
5.0.50.0000.0508.66
5.0.40.0030.0308.66
5.0.30.0000.0678.66
5.0.20.0000.0378.66
5.0.10.0000.0378.66
5.0.00.0070.0378.66
4.4.90.0030.0308.66
4.4.80.0000.0338.66
4.4.70.0000.0408.66
4.4.60.0000.0408.66
4.4.50.0000.0208.66
4.4.40.0070.0278.66
4.4.30.0000.0378.66
4.4.20.0030.0378.66
4.4.10.0000.0338.66
4.4.00.0000.0508.66
4.3.110.0000.0408.66
4.3.100.0100.0308.66
4.3.90.0030.0338.66
4.3.80.0000.0308.66
4.3.70.0000.0178.66
4.3.60.0030.0308.66
4.3.50.0000.0178.66
4.3.40.0000.0308.66
4.3.30.0000.0378.66
4.3.20.0000.0208.66
4.3.10.0000.0378.66
4.3.00.0000.0178.66

preferences:
52.37 ms | 400 KiB | 5 Q