3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const D = 12; public static function test(array $a); } abstract class A { const C = 14; protected static $var = 17; } class B extends A implements I { const C = 15; public static function test(array $a){ return parent::$var; } } var_dump(B::test(array()), A::C, B::C);

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.70.0040.01818.43
8.3.60.0120.00418.18
8.3.50.0120.00521.91
8.3.40.0140.00018.69
8.3.30.0040.01118.83
8.3.20.0000.00720.24
8.3.10.0050.00320.50
8.3.00.0040.00419.79
8.2.180.0070.00716.38
8.2.170.0070.01422.96
8.2.160.0000.01320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.10
8.2.110.0030.00619.18
8.2.100.0040.00817.66
8.2.90.0080.00017.75
8.2.80.0040.00419.68
8.2.70.0050.00317.93
8.2.60.0030.00518.22
8.2.50.0040.00418.10
8.2.40.0040.00418.19
8.2.30.0050.00219.32
8.2.20.0050.00217.56
8.2.10.0060.00317.93
8.2.00.0050.00317.68
8.1.280.0100.01025.92
8.1.270.0030.00623.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.98
8.1.230.0040.00722.69
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00517.22
8.1.180.0030.00618.10
8.1.170.0000.00818.67
8.1.160.0070.00022.07
8.1.150.0000.00818.84
8.1.140.0000.00717.40
8.1.130.0030.00317.67
8.1.120.0000.00717.43
8.1.110.0000.00817.35
8.1.100.0000.00717.46
8.1.90.0040.00417.43
8.1.80.0000.00717.30
8.1.70.0000.00717.34
8.1.60.0000.01017.54
8.1.50.0030.00517.43
8.1.40.0030.00517.45
8.1.30.0040.00417.48
8.1.20.0080.00017.54
8.1.10.0030.00617.39
8.1.00.0040.00417.48
8.0.300.0020.00519.75
8.0.290.0000.00716.63
8.0.280.0030.00518.39
8.0.270.0030.00317.33
8.0.260.0040.00417.14
8.0.250.0030.00316.86
8.0.240.0000.00816.98
8.0.230.0040.00416.98
8.0.220.0070.00016.97
8.0.210.0030.00316.78
8.0.200.0000.00717.00
8.0.190.0000.00716.95
8.0.180.0000.00716.98
8.0.170.0040.00416.91
8.0.160.0070.00016.90
8.0.150.0040.00416.86
8.0.140.0000.00716.79
8.0.130.0000.00613.25
8.0.120.0040.00416.86
8.0.110.0000.00716.86
8.0.100.0040.00416.85
8.0.90.0040.00416.79
8.0.80.0110.00616.76
8.0.70.0040.00416.77
8.0.60.0000.00716.71
8.0.50.0040.00416.77
8.0.30.0120.00717.15
8.0.20.0100.01017.40
8.0.10.0040.00416.86
8.0.00.0120.00616.80
7.4.330.0000.00515.00
7.4.320.0060.00016.51
7.4.300.0030.00316.54
7.4.290.0060.00016.41
7.4.280.0050.00216.56
7.4.270.0030.00316.37
7.4.260.0030.00316.37
7.4.250.0000.00816.54
7.4.240.0020.00516.51
7.4.230.0030.00316.36
7.4.220.0090.00916.58
7.4.210.0060.01216.37
7.4.200.0000.00816.64
7.4.160.0080.00816.54
7.4.150.0100.01717.40
7.4.140.0120.00717.86
7.4.130.0110.00816.45
7.4.120.0120.00616.50
7.4.110.0130.00916.49
7.4.100.0100.00716.48
7.4.90.0030.01316.49
7.4.80.0070.01016.39
7.4.70.0130.00516.65
7.4.60.0080.00816.42
7.4.50.0000.00816.57
7.4.40.0130.00316.49
7.4.30.0060.01116.56
7.4.00.0030.01215.06
7.3.330.0030.00313.27
7.3.320.0000.00513.15
7.3.310.0070.00016.36
7.3.300.0000.00616.31
7.3.290.0090.01016.36
7.3.280.0090.00716.32
7.3.270.0060.01417.40
7.3.260.0110.00716.65
7.3.250.0080.01216.37
7.3.240.0120.01216.29
7.3.230.0120.00616.39
7.3.210.0100.00716.20
7.3.200.0120.00919.39
7.3.190.0110.00616.21
7.3.180.0080.01716.37
7.3.170.0060.01016.66
7.3.160.0030.01316.49
7.3.10.0110.00616.56
7.3.00.0050.00816.40
7.2.330.0100.00716.43
7.2.320.0120.00616.66
7.2.310.0030.01416.55
7.2.300.0060.01016.47
7.2.290.0100.00716.51
7.2.130.0050.01016.99
7.2.120.0040.00816.75
7.2.110.0050.00516.76
7.2.100.0100.00516.77
7.2.90.0040.01116.70
7.2.80.0090.00716.94
7.2.70.0100.00516.78
7.2.60.0100.00516.67
7.2.50.0060.00816.97
7.2.40.0070.00616.76
7.2.30.0000.01217.05
7.2.20.0080.00616.90
7.2.10.0050.01016.79
7.2.00.0060.01117.58
7.1.250.0040.00615.55
7.1.100.0000.01118.07
7.1.70.0030.01017.16
7.1.60.0100.01319.32
7.1.50.0100.01016.89
7.1.00.0100.06722.45
7.0.200.0070.00016.71
7.0.140.0000.07722.00
7.0.60.0070.06719.82
7.0.50.0070.08017.88
7.0.40.0070.08020.18
7.0.30.0270.08320.09
7.0.20.0330.05020.12
7.0.10.0100.08720.33
7.0.00.0030.09020.27
5.6.280.0030.07321.09
5.6.210.0130.06020.51
5.6.200.0000.08718.15
5.6.190.0100.08720.67
5.6.180.0200.04020.39
5.6.170.0170.06320.52
5.6.160.0130.05020.41
5.6.150.0000.06718.23
5.6.140.0070.08018.19
5.6.130.0130.05318.29
5.6.120.0000.09020.97
5.6.110.0030.05721.03
5.6.100.0000.08320.98
5.6.90.0070.07721.13
5.6.80.0170.07320.43
5.5.350.0270.08020.48
5.5.340.0070.07718.09
5.5.330.0130.08020.38
5.5.320.0600.06720.27
5.5.310.0230.04720.26
5.5.300.0100.08317.98
5.5.290.0070.08317.95
5.5.280.0070.07720.79
5.5.270.0100.08020.87
5.5.260.0030.04720.81
5.5.250.0070.03720.50
5.5.240.0270.07020.05
5.4.450.0100.04319.20
5.4.440.0170.04319.41
5.4.430.0130.06319.57
5.4.420.0130.05019.30
5.4.410.0230.04719.36
5.4.400.0170.07319.13
5.4.390.0130.04318.89
5.4.380.0270.06319.20
5.4.370.0230.04019.22
5.4.360.0170.03719.08
5.4.350.0200.04019.31
5.4.340.0170.03719.24
5.4.320.0130.04718.98
5.4.310.0170.03318.85
5.4.300.0230.04318.99
5.4.290.0170.04719.13
5.4.280.0200.04018.95
5.4.270.0130.04319.06
5.4.260.0170.03319.16
5.4.250.0100.04019.15
5.4.240.0230.04319.14
5.4.230.0200.04019.21
5.4.220.0170.04719.13
5.4.210.0170.03319.08
5.4.200.0130.05018.99
5.4.190.0600.05719.21
5.4.180.0530.04319.12
5.4.170.0230.03719.27
5.4.160.0230.04718.93
5.4.150.0200.04019.22
5.4.140.0230.03716.47
5.4.130.0170.04316.56
5.4.120.0230.03316.38
5.4.110.0230.03316.40
5.4.100.0230.06016.50
5.4.90.0100.04716.60
5.4.80.0170.04016.59
5.4.70.0200.04016.22
5.4.60.0200.04016.25
5.4.50.0200.03716.16
5.4.40.0130.04316.23
5.4.30.0100.03316.51
5.4.20.0270.05716.55
5.4.10.0230.03716.24
5.4.00.0270.06015.79
5.3.290.0300.03014.57
5.3.280.0170.03314.57
5.3.270.0100.04314.66
5.3.260.0270.03014.70
5.3.250.0230.04014.76
5.3.240.0170.04314.52
5.3.230.0270.04014.64
5.3.220.0200.04314.51
5.3.210.0270.03014.54
5.3.200.0200.05314.55
5.3.190.0130.04014.55
5.3.180.0230.05314.78
5.3.170.0170.05714.53
5.3.160.0200.06714.48
5.3.150.0200.03714.58
5.3.140.0430.04014.58
5.3.130.0230.03714.60
5.3.120.0130.05014.47
5.3.110.0200.04014.54
5.3.100.0330.03014.03
5.3.90.0200.04713.95
5.3.80.0200.06713.93
5.3.70.0470.03714.03
5.3.60.0230.05014.02
5.3.50.0230.03314.07
5.3.40.0200.06713.86
5.3.30.0300.06313.96
5.3.20.0130.04013.79
5.3.10.0230.03013.66
5.3.00.0430.03713.55
5.2.170.0200.05311.05
5.2.160.0130.06711.20
5.2.150.0200.06011.23
5.2.140.0130.03311.07
5.2.130.0470.04011.20
5.2.120.0270.05011.34
5.2.110.0130.03010.97
5.2.100.0170.02711.02
5.2.90.0170.02711.02
5.2.80.0130.03711.32
5.2.70.0100.03311.32
5.2.60.0230.03010.98
5.2.50.0170.03711.02
5.2.40.0100.03011.11
5.2.30.0130.03311.19
5.2.20.0130.03311.18
5.2.10.0170.02310.91
5.2.00.0100.03310.64
5.1.60.0130.02310.23
5.1.50.0100.03010.08
5.1.40.0130.0239.89
5.1.30.0130.02310.32
5.1.20.0230.03010.36
5.1.10.0200.01710.08
5.1.00.0100.02710.06
5.0.50.0030.0278.42
5.0.40.0000.0238.52
5.0.30.0070.0578.10
5.0.20.0070.0178.10
5.0.10.0030.0208.25
5.0.00.0030.0308.32
4.4.90.0030.0177.36
4.4.80.0100.0137.36
4.4.70.0030.0177.36
4.4.60.0070.0137.36
4.4.50.0070.0207.36
4.4.40.0330.0237.36
4.4.30.0070.0177.36
4.4.20.0030.0207.36
4.4.10.0070.0107.36
4.4.00.0000.0307.36
4.3.110.0000.0177.36
4.3.100.0030.0177.36
4.3.90.0030.0177.36
4.3.80.0070.0237.36
4.3.70.0030.0177.36
4.3.60.0070.0177.36
4.3.50.0030.0177.36
4.3.40.0030.0277.36
4.3.30.0030.0137.36
4.3.20.0000.0207.36
4.3.10.0000.0237.36
4.3.00.0000.0177.36

preferences:
61.4 ms | 401 KiB | 5 Q