3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { const NONE = 0; } abstract class B implements A { protected static $values; public static function get() { if (null === static::$values) { $r = new \ReflectionClass(get_called_class()); static::$values = $r->getConstants(); } return static::$values; } } class C extends B { const BLA = 1; protected static $values; } class D extends B { const BLAHA = 1; protected static $values; } var_dump(C::get()); var_dump(D::get());

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.0100.01018.25
8.3.50.0140.00418.13
8.3.40.0070.00718.66
8.3.30.0040.01119.22
8.3.20.0080.00020.21
8.3.10.0040.00422.05
8.3.00.0040.00422.49
8.2.180.0120.00616.50
8.2.170.0040.01122.96
8.2.160.0060.00920.94
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0120.00426.16
8.2.120.0000.00817.63
8.2.110.0000.01022.19
8.2.100.0040.00819.64
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0060.00617.63
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0060.00318.16
8.2.30.0070.00018.07
8.2.20.0000.00817.54
8.2.10.0030.00517.56
8.2.00.0030.00917.60
8.1.270.0090.00022.08
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.83
8.1.230.0090.00319.08
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.24
8.1.190.0080.00017.55
8.1.180.0080.00018.85
8.1.170.0030.00618.66
8.1.160.0030.00521.89
8.1.150.0030.00618.63
8.1.140.0000.00717.41
8.1.130.0000.00717.66
8.1.120.0050.00517.52
8.1.110.0030.00617.36
8.1.100.0000.00717.50
8.1.90.0050.00217.40
8.1.80.0000.00717.36
8.1.70.0070.00017.42
8.1.60.0030.00617.64
8.1.50.0040.00417.49
8.1.40.0000.00817.50
8.1.30.0030.00617.49
8.1.20.0040.00417.59
8.1.10.0070.00017.48
8.1.00.0050.00317.52
8.0.300.0000.00818.77
8.0.290.0070.00017.05
8.0.280.0000.00718.46
8.0.270.0070.00017.32
8.0.260.0000.00616.86
8.0.250.0070.00016.84
8.0.240.0050.00316.93
8.0.230.0040.00416.90
8.0.220.0040.00416.95
8.0.210.0080.00016.96
8.0.200.0070.00016.98
8.0.190.0000.00816.95
8.0.180.0040.00416.93
8.0.170.0070.00016.83
8.0.160.0000.00716.99
8.0.150.0040.00416.86
8.0.140.0040.00416.85
8.0.130.0030.00313.28
8.0.120.0040.00416.71
8.0.110.0000.00816.79
8.0.100.0070.00016.88
8.0.90.0040.00416.80
8.0.80.0030.01316.88
8.0.70.0050.00316.98
8.0.60.0050.00216.70
8.0.50.0000.00716.78
8.0.30.0110.00817.02
8.0.20.0100.00817.40
8.0.10.0000.00716.81
8.0.00.0130.00816.69
7.4.330.0050.00015.00
7.4.320.0030.00316.65
7.4.300.0000.00716.61
7.4.290.0030.00316.60
7.4.280.0000.00716.61
7.4.270.0050.00316.61
7.4.260.0070.00016.57
7.4.250.0050.00316.37
7.4.240.0020.00616.49
7.4.230.0040.00416.48
7.4.220.0120.00916.50
7.4.210.0100.00816.60
7.4.200.0000.00716.70
7.4.190.0040.00416.47
7.4.160.0070.01016.53
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0110.00616.44
7.4.120.0110.00716.54
7.4.110.0120.00316.61
7.4.100.0100.01016.52
7.4.90.0070.01716.37
7.4.80.0060.01619.39
7.4.70.0130.00316.50
7.4.60.0070.01416.36
7.4.50.0040.00016.60
7.4.40.0090.00622.77
7.4.30.0100.00616.54
7.4.00.0060.00314.95
7.3.330.0000.00513.17
7.3.320.0060.00013.15
7.3.310.0000.00716.33
7.3.300.0030.00316.32
7.3.290.0080.00816.30
7.3.280.0100.00816.29
7.3.270.0090.01217.40
7.3.260.0100.00716.28
7.3.250.0120.00516.50
7.3.240.0110.00616.41
7.3.230.0100.00716.39
7.3.210.0110.00516.21
7.3.200.0140.00719.39
7.3.190.0140.00316.61
7.3.180.0040.01816.38
7.3.170.0130.01016.45
7.3.160.0040.01216.34
7.3.120.0040.01114.80
7.3.10.0250.00416.46
7.3.00.0120.01216.54
7.2.330.0130.00416.78
7.2.320.0170.00716.70
7.2.310.0070.01016.85
7.2.300.0100.00716.76
7.2.290.0120.00616.37
7.2.130.0110.01116.41
7.2.120.0100.01216.82
7.2.110.0120.00316.53
7.2.100.0000.01417.02
7.2.90.0170.00316.92
7.2.80.0040.01416.91
7.2.70.0110.00717.00
7.2.60.0070.00816.73
7.2.50.0040.00816.99
7.2.40.0100.00317.03
7.2.30.0000.01416.96
7.2.20.0090.00616.55
7.2.10.0090.00616.96
7.2.00.0000.01116.77
7.1.250.0120.00915.88
7.1.200.0060.00615.79
7.1.70.0040.00716.86
7.1.60.0100.01419.82
7.1.50.0130.00616.71
7.1.00.0000.08022.40
7.0.200.0250.00416.68
7.0.140.0030.07322.09
7.0.100.0370.04719.98
7.0.90.0030.05320.03
7.0.80.0070.07319.89
7.0.70.0070.04319.93
7.0.60.0170.07319.94
7.0.50.0100.08320.36
7.0.40.0100.05720.15
7.0.30.0070.08320.14
7.0.20.0100.07720.14
7.0.10.0170.07320.09
7.0.00.0130.06720.13
5.6.280.0030.09021.08
5.6.250.0130.05720.57
5.6.240.0100.07720.65
5.6.230.0100.09020.64
5.6.220.0100.04320.55
5.6.210.0070.08320.54
5.6.200.0070.08021.04
5.6.190.0070.08321.18
5.6.180.0130.09021.06
5.6.170.0130.08021.09
5.6.160.0170.07021.01
5.6.150.0030.09021.02
5.6.140.0130.06021.02
5.6.130.0200.06021.02
5.6.120.0070.05021.06
5.6.110.0030.06721.05
5.6.100.0030.05021.04
5.6.90.0030.08321.06
5.6.80.0030.06320.49
5.6.70.0070.08020.39
5.6.60.0000.08020.39
5.6.50.0170.06720.48
5.6.40.0100.05020.40
5.6.30.0100.08020.53
5.6.20.0070.07720.30
5.6.10.0200.05020.44
5.6.00.0130.07020.41
5.5.380.0130.07020.36
5.5.370.0100.07320.46
5.5.360.0130.07720.44
5.5.350.0130.07720.42
5.5.340.0070.05720.84
5.5.330.0170.06720.75
5.5.320.0130.07720.87
5.5.310.0130.07020.90
5.5.300.0130.07020.92
5.5.290.0030.08020.93
5.5.280.0030.09020.92
5.5.270.0270.06320.64
5.5.260.0030.08720.88
5.5.250.0000.05720.62
5.5.240.0100.08020.24
5.5.230.0130.08020.18
5.5.220.0000.08720.02
5.5.210.0100.07720.27
5.5.200.0170.07020.26
5.5.190.0030.08720.00
5.5.180.0170.07020.13
5.5.160.0070.08020.09
5.5.150.0100.07320.25
5.5.140.0100.08020.29
5.5.130.0130.06720.14
5.5.120.0070.07320.24
5.5.110.0100.08020.19
5.5.100.0100.06320.13
5.5.90.0030.07020.14
5.5.80.0100.05720.07
5.5.70.0200.06320.17
5.5.60.0030.05320.16
5.5.50.0000.08020.11
5.5.40.0100.06720.09
5.5.30.0030.04720.14
5.5.20.0030.06720.05
5.5.10.0100.05320.09
5.5.00.0070.07720.10
5.4.450.0170.07019.38
5.4.440.0100.07719.49
5.4.430.0100.07719.35
5.4.420.0070.07319.44
5.4.410.0130.07019.22
5.4.400.0070.08319.23
5.4.390.0030.06719.03
5.4.380.0100.05718.95
5.4.370.0030.08018.87
5.4.360.0130.04019.23
5.4.350.0100.07019.23
5.4.340.0030.04019.21
5.4.320.0130.07318.95
5.4.310.0170.06719.03
5.4.300.0030.08018.94
5.4.290.0070.08019.14
5.4.280.0000.08319.22
5.4.270.0030.06719.20
5.4.260.0130.07019.12
5.4.250.0070.03718.94
5.4.240.0030.07318.88
5.4.230.0170.07019.15
5.4.220.0070.08318.94
5.4.210.0070.06019.04
5.4.200.0100.07718.86
5.4.190.0130.06718.93
5.4.180.0030.08019.15
5.4.170.0030.06719.02
5.4.160.0030.08018.92
5.4.150.0130.07719.00
5.4.140.0130.06016.32
5.4.130.0070.07016.46
5.4.120.0030.07316.46
5.4.110.0000.05016.52
5.4.100.0070.08016.57
5.4.90.0030.05016.48
5.4.80.0030.06716.54
5.4.70.0100.05316.43
5.4.60.0000.05016.38
5.4.50.0030.07316.24
5.4.40.0100.05016.45
5.4.30.0030.07716.39
5.4.20.0130.06716.23
5.4.10.0030.07016.46
5.4.00.0000.07315.89
5.3.290.0100.07314.76
5.3.280.0070.05714.59
5.3.270.0030.06014.64
5.3.260.0030.08714.66
5.3.250.0100.06314.62
5.3.240.0070.07714.70
5.3.230.0100.06014.57
5.3.220.0030.08014.55
5.3.210.0070.07014.57
5.3.200.0030.07314.66
5.3.190.0170.06714.67
5.3.180.0100.06014.54
5.3.170.0070.07014.54
5.3.160.0100.07314.53
5.3.150.0030.07314.49
5.3.140.0100.06014.48
5.3.130.0100.04014.65
5.3.120.0030.08314.54
5.3.110.0100.08314.57
5.3.100.0070.07014.05
5.3.90.0070.06714.13
5.3.80.0030.04714.14
5.3.70.0100.07014.15
5.3.60.0030.08314.01
5.3.50.0000.05013.98
5.3.40.0000.05313.97
5.3.30.0100.05713.93
5.3.20.0130.05313.59
5.3.10.0030.07713.79
5.3.00.0100.07013.64
5.2.170.0030.04012.22
5.2.160.0030.04012.22
5.2.150.0000.05012.22
5.2.140.0100.04712.22
5.2.130.0070.06012.22
5.2.120.0030.06012.22
5.2.110.0130.05712.22
5.2.100.0030.06312.22
5.2.90.0000.06712.22
5.2.80.0030.04312.22
5.2.70.0030.03312.22
5.2.60.0030.06012.22
5.2.50.0070.06012.22
5.2.40.0070.05312.22
5.2.30.0030.04012.22
5.2.20.0030.04012.22
5.2.10.0030.05012.22
5.2.00.0070.02712.22
5.1.60.0030.04712.22
5.1.50.0170.04012.22
5.1.40.0030.03312.22
5.1.30.0030.02712.22
5.1.20.0000.05712.22
5.1.10.0100.04312.22
5.1.00.0030.05712.22
5.0.50.0030.04712.22
5.0.40.0030.04312.22
5.0.30.0000.07012.22
5.0.20.0030.04712.22
5.0.10.0030.03312.22
5.0.00.0030.04712.22
4.4.90.0000.03312.22
4.4.80.0030.03712.22
4.4.70.0030.03312.22
4.4.60.0070.03012.22
4.4.50.0030.02712.22
4.4.40.0030.04312.22
4.4.30.0000.02312.22
4.4.20.0030.01312.22
4.4.10.0000.02712.22
4.4.00.0000.04312.22
4.3.110.0000.03712.22
4.3.100.0000.04012.22
4.3.90.0030.03312.22
4.3.80.0070.05012.22
4.3.70.0100.02712.22
4.3.60.0000.03312.22
4.3.50.0000.04012.22
4.3.40.0030.04312.22
4.3.30.0000.03712.22
4.3.20.0030.01712.22
4.3.10.0030.03712.22
4.3.00.0070.02712.22

preferences:
61.36 ms | 400 KiB | 5 Q