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; } class D extends B { const BLAHA = 1; } 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.0150.00616.50
8.3.50.0200.00416.45
8.3.40.0070.00718.82
8.3.30.0070.01118.71
8.3.20.0060.00318.74
8.3.10.0040.00420.36
8.3.00.0060.00319.38
8.2.180.0070.00716.88
8.2.170.0140.00422.96
8.2.160.0070.00718.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00918.80
8.2.110.0080.00419.39
8.2.100.0070.00417.78
8.2.90.0080.00019.07
8.2.80.0040.00417.97
8.2.70.0100.00017.50
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0030.00619.88
8.2.30.0040.00418.04
8.2.20.0060.00319.39
8.2.10.0070.00017.73
8.2.00.0040.00417.67
8.1.280.0140.00025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0060.00321.35
8.1.230.0040.00717.42
8.1.220.0030.00617.77
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0000.00818.75
8.1.160.0050.00318.89
8.1.150.0050.00318.67
8.1.140.0000.00717.46
8.1.130.0000.00717.93
8.1.120.0000.00717.49
8.1.110.0040.00417.44
8.1.100.0030.00517.44
8.1.90.0020.00517.46
8.1.80.0040.00417.46
8.1.70.0000.00717.38
8.1.60.0070.00317.60
8.1.50.0030.00517.44
8.1.40.0030.00617.50
8.1.30.0040.00417.54
8.1.20.0040.00417.63
8.1.10.0000.00717.44
8.1.00.0000.00817.51
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00717.18
8.0.260.0000.00616.76
8.0.250.0040.00416.89
8.0.240.0040.00417.02
8.0.230.0000.00716.90
8.0.220.0030.00616.76
8.0.210.0040.00416.93
8.0.200.0070.00016.94
8.0.190.0040.00416.81
8.0.180.0030.00316.91
8.0.170.0030.00616.80
8.0.160.0040.00416.90
8.0.150.0050.00216.80
8.0.140.0050.00316.80
8.0.130.0050.00013.25
8.0.120.0000.00716.77
8.0.110.0000.00716.83
8.0.100.0040.00416.85
8.0.90.0000.00816.90
8.0.80.0040.01116.87
8.0.70.0040.00416.80
8.0.60.0070.00016.91
8.0.50.0000.00816.92
8.0.30.0060.01217.00
8.0.20.0120.00616.94
8.0.10.0000.00716.81
8.0.00.0150.01116.83
7.4.330.0020.00212.94
7.4.320.0000.00716.40
7.4.300.0060.00016.59
7.4.290.0040.00416.51
7.4.280.0000.00716.47
7.4.270.0070.00016.49
7.4.260.0000.00513.18
7.4.250.0080.00016.44
7.4.240.0000.00716.52
7.4.230.0000.00716.40
7.4.220.0130.00616.55
7.4.210.0130.00616.61
7.4.200.0030.00316.59
7.4.190.0070.00016.61
7.4.160.0120.00916.57
7.4.150.0030.01316.61
7.4.140.0120.00816.59
7.4.130.0060.01216.40
7.4.120.0030.01316.59
7.4.110.0030.01316.50
7.4.100.0170.00316.40
7.4.90.0140.00416.39
7.4.80.0130.00319.39
7.4.70.0060.01016.41
7.4.60.0090.00616.48
7.4.50.0040.00416.54
7.4.40.0070.00716.36
7.4.30.0100.00716.42
7.4.00.0130.00514.97
7.3.330.0000.00713.33
7.3.320.0000.00613.21
7.3.310.0030.00316.26
7.3.300.0040.00416.17
7.3.290.0070.00716.31
7.3.280.0040.01116.27
7.3.270.0100.01016.30
7.3.260.0160.01116.31
7.3.250.0080.01016.54
7.3.240.0080.00816.52
7.3.230.0100.00716.46
7.3.210.0130.01016.52
7.3.200.0090.01216.50
7.3.190.0120.01116.61
7.3.180.0030.01316.63
7.3.170.0040.01416.36
7.3.160.0090.00616.37
7.3.120.0100.00514.90
7.3.110.0000.01314.57
7.3.100.0050.01014.80
7.3.90.0030.01014.96
7.3.80.0110.00014.43
7.3.70.0040.00714.73
7.3.60.0080.00414.58
7.3.50.0040.00714.58
7.3.40.0000.01014.70
7.3.30.0130.00014.82
7.3.20.0060.00316.41
7.3.10.0050.01216.58
7.3.00.0140.00316.47
7.2.330.0120.00616.48
7.2.320.0070.01016.70
7.2.310.0090.01016.61
7.2.300.0060.01216.67
7.2.290.0180.00416.42
7.2.250.0030.01715.21
7.2.240.0120.00414.98
7.2.230.0070.00715.10
7.2.220.0040.00815.23
7.2.210.0080.00014.72
7.2.200.0060.00314.98
7.2.190.0080.00814.89
7.2.180.0080.00815.14
7.2.170.0040.01115.19
7.2.130.0100.00316.46
7.2.120.0100.00316.57
7.2.110.0150.00316.49
7.2.100.0170.00316.33
7.2.90.0100.00716.91
7.2.80.0120.00416.60
7.2.70.0090.00916.71
7.2.60.0150.00616.66
7.2.50.0160.00716.52
7.2.40.0170.00416.89
7.2.30.0100.01016.41
7.2.20.0140.01216.34
7.2.10.0030.01416.60
7.2.00.0030.01316.56
7.1.330.0040.00815.43
7.1.320.0090.00315.78
7.1.310.0130.00015.60
7.1.300.0070.00715.67
7.1.290.0000.01115.56
7.1.280.0080.00815.51
7.1.270.0090.00615.81
7.1.260.0060.00615.86
7.1.250.0120.00815.31
7.1.200.0070.00415.43
7.1.70.0040.00417.06
7.1.60.0100.01019.17
7.1.50.0000.02316.82
7.1.00.0030.03322.31
7.0.200.0080.00316.65
7.0.140.0070.07021.96
7.0.120.0070.07022.18
7.0.60.0100.08019.79
7.0.50.0030.05017.95
7.0.40.0100.08320.27
7.0.30.0170.04320.09
7.0.20.0230.03720.09
7.0.10.0270.04020.23
7.0.00.0030.08720.29
5.6.280.0100.06720.93
5.6.210.0030.08020.61
5.6.200.0100.08318.18
5.6.190.0100.04020.55
5.6.180.0300.05320.62
5.6.170.0230.07720.56
5.6.160.0100.08020.50
5.6.150.0070.04718.21
5.6.140.0100.05018.17
5.6.130.0030.06018.18
5.6.120.0130.06021.16
5.6.110.0070.03720.96
5.6.100.0130.07721.14
5.6.90.0030.09021.09
5.6.80.0100.03720.37
5.6.70.0000.07020.31
5.5.350.0330.06020.39
5.5.340.0070.08318.08
5.5.330.0070.07320.43
5.5.320.0370.06320.57
5.5.310.0270.04720.28
5.5.300.0070.05318.08
5.5.290.0000.05717.98
5.5.280.0070.09020.94
5.5.270.0000.07320.87
5.5.260.0070.06720.64
5.5.250.0200.06020.67
5.5.240.0470.03020.29
5.4.450.0030.04019.18
5.4.440.0070.04719.18
5.4.430.0030.03719.17
5.4.420.0030.04019.18
5.4.410.0000.04319.35
5.4.400.0030.04018.86
5.4.390.0000.04718.85
5.4.380.0030.03719.07
5.4.370.0070.03318.92
5.4.360.0030.04019.14
5.4.350.0030.05319.17
5.4.340.0000.04019.12
5.4.320.0030.04718.94
5.4.310.0130.04319.16
5.4.300.0030.04319.14
5.4.290.0000.08019.24
5.4.280.0030.06018.85
5.4.270.0100.04319.24
5.4.260.0030.07018.97
5.4.250.0000.04319.23
5.4.240.0030.07018.84
5.4.230.0070.06319.23
5.4.220.0000.07019.11
5.4.210.0070.05319.16
5.4.200.0030.08019.15
5.4.190.0100.07718.91
5.4.180.0200.06019.13
5.4.170.0100.07318.84
5.4.160.0100.04019.13
5.4.150.0000.08319.10
5.4.140.0100.04716.58
5.4.130.0030.05316.31
5.4.120.0070.07316.50
5.4.110.0030.07716.46
5.4.100.0130.06316.58
5.4.90.0070.04716.35
5.4.80.0100.06716.37
5.4.70.0070.03316.43
5.4.60.0070.03316.39
5.4.50.0030.07016.34
5.4.40.0100.03716.64
5.4.30.0000.05716.43
5.4.20.0070.06316.38
5.4.10.0000.06716.31
5.4.00.0070.04315.82
5.3.290.0100.05714.70
5.3.280.0030.08014.62
5.3.270.0070.08314.61
5.3.260.0070.07314.66
5.3.250.0030.05314.77
5.3.240.0100.07314.66
5.3.230.0100.04014.76
5.3.220.0030.04014.58
5.3.210.0100.06714.45
5.3.200.0100.07314.46
5.3.190.0100.07714.60
5.3.180.0070.04314.60
5.3.170.0030.05014.63
5.3.160.0130.03714.58
5.3.150.0000.04314.62
5.3.140.0100.07714.62
5.3.130.0000.05314.70
5.3.120.0070.07714.55
5.3.110.0170.07314.55
5.3.100.0100.06714.18
5.3.90.0030.07714.04
5.3.80.0000.05313.98
5.3.70.0130.06314.09
5.3.60.0130.05314.03
5.3.50.0070.06013.97
5.3.40.0070.07713.98
5.3.30.0100.04714.00
5.3.20.0070.03313.70
5.3.10.0030.03713.82
5.3.00.0070.03313.71
5.2.170.0030.04311.04
5.2.160.0070.06011.18
5.2.150.0000.07011.15
5.2.140.0170.02711.14
5.2.130.0100.02311.16
5.2.120.0000.03311.16
5.2.110.0070.02711.14
5.2.100.0030.06311.02
5.2.90.0000.04711.14
5.2.80.0070.06011.05
5.2.70.0100.04311.18
5.2.60.0030.03711.00
5.2.50.0070.06011.17
5.2.40.0070.04711.04
5.2.30.0070.03310.97
5.2.20.0000.04010.84
5.2.10.0030.02710.86
5.2.00.0000.03310.63
5.1.60.0000.0279.98
5.1.50.0070.02310.05
5.1.40.0000.02710.00
5.1.30.0000.04010.43
5.1.20.0070.03710.41
5.1.10.0100.05310.11
5.1.00.0000.03010.06
5.0.50.0130.0178.53
5.0.40.0030.0278.57
5.0.30.0000.0438.27
5.0.20.0000.0308.24
5.0.10.0000.0308.17
5.0.00.0000.0678.16
4.4.90.0030.0207.66
4.4.80.0000.0237.66
4.4.70.0000.0237.66
4.4.60.0000.0237.66
4.4.50.0030.0137.66
4.4.40.0000.0277.66
4.4.30.0100.0107.66
4.4.20.0000.0237.66
4.4.10.0030.0207.66
4.4.00.0030.0307.66
4.3.110.0070.0237.66
4.3.100.0030.0207.66
4.3.90.0030.0377.66
4.3.80.0070.0377.66
4.3.70.0000.0237.66
4.3.60.0000.0237.66
4.3.50.0000.0237.66
4.3.40.0000.0407.66
4.3.30.0000.0377.66
4.3.20.0030.0277.66
4.3.10.0000.0407.66
4.3.00.0000.0237.66

preferences:
47.25 ms | 401 KiB | 5 Q