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; } class B implements I { const C = 15; public static function test(array $a){ return self::D; } } 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.60.0120.00618.43
8.3.50.0160.00322.01
8.3.40.0110.00318.67
8.3.30.0140.00718.95
8.3.20.0070.00020.48
8.3.10.0090.00020.39
8.3.00.0000.00819.56
8.2.180.0000.01516.50
8.2.170.0090.00922.96
8.2.160.0030.01020.57
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0100.00022.23
8.2.110.0160.00022.30
8.2.100.0030.00917.91
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00417.89
8.2.30.0070.00019.18
8.2.20.0020.00517.68
8.2.10.0040.00417.90
8.2.00.0070.00017.54
8.1.280.0070.01125.92
8.1.270.0090.00022.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00318.50
8.1.230.0140.00019.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0000.00722.01
8.1.150.0040.00418.86
8.1.140.0040.00417.33
8.1.130.0070.00017.74
8.1.120.0040.00417.43
8.1.110.0040.00417.41
8.1.100.0030.00317.41
8.1.90.0040.00417.42
8.1.80.0000.00717.45
8.1.70.0000.00717.31
8.1.60.0030.00617.54
8.1.50.0000.00917.37
8.1.40.0000.00917.34
8.1.30.0040.00417.45
8.1.20.0000.00817.55
8.1.10.0040.00417.48
8.1.00.0060.00317.45
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.44
8.0.270.0000.00717.17
8.0.260.0000.00617.13
8.0.250.0070.00016.96
8.0.240.0000.00716.96
8.0.230.0030.00316.84
8.0.220.0060.00316.87
8.0.210.0040.00416.81
8.0.200.0040.00416.98
8.0.190.0000.00716.98
8.0.180.0070.00016.82
8.0.170.0070.00016.77
8.0.160.0040.00416.86
8.0.150.0030.00316.78
8.0.140.0030.00316.75
8.0.130.0030.00313.26
8.0.120.0000.00716.73
8.0.110.0070.00016.82
8.0.100.0070.00016.65
8.0.90.0060.00316.68
8.0.80.0060.01516.73
8.0.70.0000.00716.89
8.0.60.0050.00316.84
8.0.50.0040.00416.79
8.0.30.0080.01016.77
8.0.20.0050.01617.40
8.0.10.0070.00016.93
8.0.00.0100.01116.84
7.4.330.0030.00315.08
7.4.320.0070.00016.54
7.4.300.0030.00316.57
7.4.290.0040.00416.52
7.4.280.0000.00716.43
7.4.270.0070.00016.36
7.4.260.0030.00516.56
7.4.250.0050.00516.38
7.4.240.0000.00716.57
7.4.230.0040.00416.32
7.4.220.0130.00616.45
7.4.210.0030.01116.36
7.4.200.0000.00716.39
7.4.160.0090.00916.61
7.4.150.0160.00617.40
7.4.140.0090.01117.86
7.4.130.0110.00616.45
7.4.120.0080.01016.41
7.4.110.0160.00616.37
7.4.100.0120.00616.58
7.4.90.0130.00416.37
7.4.80.0200.00316.55
7.4.70.0060.00916.60
7.4.60.0090.00616.33
7.4.50.0000.00816.49
7.4.40.0080.00816.43
7.4.30.0060.00916.58
7.4.00.0030.01414.92
7.3.330.0070.00013.17
7.3.320.0030.00313.10
7.3.310.0060.00316.33
7.3.300.0040.00416.28
7.3.290.0060.01216.23
7.3.280.0100.00616.28
7.3.270.0130.01317.40
7.3.260.0110.00716.51
7.3.250.0160.00516.26
7.3.240.0080.01216.48
7.3.230.0120.00416.39
7.3.210.0070.01016.23
7.3.200.0090.01519.39
7.3.190.0160.00616.39
7.3.180.0100.00716.23
7.3.170.0090.01216.59
7.3.160.0100.01016.38
7.3.120.0060.00814.67
7.3.110.0040.01314.57
7.3.100.0050.01114.80
7.3.90.0030.00814.63
7.3.80.0060.00614.56
7.3.70.0070.01014.86
7.3.60.0020.01214.55
7.3.50.0130.00314.74
7.3.40.0060.00914.77
7.3.30.0080.00414.76
7.3.20.0110.00316.37
7.3.10.0060.01016.66
7.3.00.0020.01016.57
7.2.330.0100.00716.54
7.2.320.0090.00916.60
7.2.310.0070.01016.51
7.2.300.0080.00816.64
7.2.290.0100.00716.57
7.2.250.0130.00614.97
7.2.240.0060.01114.94
7.2.230.0070.00715.03
7.2.220.0000.01114.85
7.2.210.0050.01115.02
7.2.200.0090.00614.91
7.2.190.0080.00714.94
7.2.180.0030.01014.89
7.2.170.0070.00514.87
7.2.160.0030.01414.55
7.2.150.0090.00616.81
7.2.140.0030.01316.95
7.2.130.0090.00616.80
7.2.120.0060.00916.94
7.2.110.0100.00716.71
7.2.100.0120.00016.85
7.2.90.0040.01416.78
7.2.80.0000.01416.88
7.2.70.0030.01316.97
7.2.60.0060.00616.77
7.2.50.0000.01516.84
7.2.40.0040.01416.88
7.2.30.0000.01116.98
7.2.20.0090.00616.58
7.2.10.0110.00716.60
7.2.00.0090.00018.08
7.1.330.0050.00815.74
7.1.320.0080.00615.65
7.1.310.0100.00315.56
7.1.300.0080.00515.50
7.1.290.0050.00915.70
7.1.280.0080.00615.61
7.1.270.0060.00615.70
7.1.260.0080.00515.56
7.1.250.0060.00915.61
7.1.100.0060.01217.67
7.1.70.0000.01117.05
7.1.60.0090.00919.32
7.1.50.0100.01016.89
7.1.00.0100.06722.46
7.0.200.0040.00416.48
7.0.140.0030.07321.92
7.0.110.0500.06319.82
7.0.100.0470.06719.92
7.0.90.0430.08319.84
7.0.80.0600.06320.08
7.0.70.0400.03719.91
7.0.60.0500.07719.98
7.0.50.0570.05319.85
7.0.40.0070.08319.76
7.0.30.0130.07719.79
7.0.20.0070.05719.77
7.0.10.0030.05019.75
7.0.00.0100.08019.73
5.6.260.0170.06020.73
5.6.250.0130.04020.66
5.6.240.0170.05320.70
5.6.230.0000.07020.55
5.6.220.0070.04720.65
5.6.210.0230.08020.71
5.6.200.0030.08320.58
5.6.190.0000.05320.65
5.6.180.0030.08020.71
5.6.170.0070.08020.57
5.6.160.0070.07720.61
5.6.150.0100.03020.62
5.6.140.0130.02720.84
5.6.130.0070.03720.54
5.6.120.0100.03720.55
5.6.110.0030.08320.63
5.6.100.0070.07720.55
5.6.90.0030.05020.55
5.6.80.0000.03720.00
5.6.70.0100.07719.99
5.6.60.0070.07719.92
5.6.50.0100.06020.02
5.6.40.0000.08719.94
5.6.30.0070.08019.91
5.6.20.0100.06319.92
5.6.10.0070.05319.92
5.6.00.0100.04320.04
5.5.380.0070.07717.63
5.5.370.0130.06017.68
5.5.360.0070.07317.59
5.5.350.0130.06717.57
5.5.340.0030.07718.25
5.5.330.0100.07717.93
5.5.320.0100.04718.11
5.5.310.0030.04717.91
5.5.300.0000.08318.07
5.5.290.0000.04718.12
5.5.280.0130.05317.91
5.5.270.0030.06718.07
5.5.260.0100.07718.11
5.5.250.0070.03317.74
5.5.240.0070.07317.44
5.5.230.0030.04717.51
5.5.220.0070.07317.42
5.5.210.0100.07017.30
5.5.200.0030.04317.58
5.5.190.0070.06717.40
5.5.180.0170.04017.26
5.5.160.0130.06317.45
5.5.150.0130.07317.42
5.5.140.0130.07317.45
5.5.130.0200.03717.25
5.5.120.0030.06317.60
5.5.110.0030.08317.18
5.5.100.0030.04317.32
5.5.90.0070.06017.30
5.5.80.0100.07317.34
5.5.70.0070.04017.15
5.5.60.0070.05017.34
5.5.50.0030.06017.07
5.5.40.0000.04017.50
5.5.30.0100.06017.33
5.5.20.0030.06317.34
5.5.10.0070.07717.16
5.5.00.0100.06317.20
5.4.450.0000.04019.57
5.4.440.0070.04719.62
5.4.430.0030.08019.31
5.4.420.0070.07719.46
5.4.410.0030.04019.29
5.4.400.0070.04719.00
5.4.390.0070.07319.30
5.4.380.0000.08319.24
5.4.370.0100.06019.15
5.4.360.0100.07318.95
5.4.350.0070.07718.95
5.4.340.0170.05719.16
5.4.320.0130.06019.09
5.4.310.0130.07319.00
5.4.300.0100.04319.09
5.4.290.0170.06719.00
5.4.280.0100.08319.21
5.4.270.0030.04018.99
5.4.260.0000.07719.17
5.4.250.0000.04718.94
5.4.240.0070.07319.03
5.4.230.0070.06718.97
5.4.220.0100.07319.14
5.4.210.0130.03318.98
5.4.200.0070.08018.99
5.4.190.0030.04319.14
5.4.180.0100.07319.14
5.4.170.0070.08018.98
5.4.160.0070.06018.96
5.4.150.0100.07019.30
5.4.140.0030.06316.58
5.4.130.0000.06716.44
5.4.120.0000.04016.58
5.4.110.0030.03016.41
5.4.100.0030.03716.50
5.4.90.0000.03716.37
5.4.80.0000.03716.45
5.4.70.0130.05316.57
5.4.60.0000.03316.43
5.4.50.0030.03016.54
5.4.40.0000.03716.37
5.4.30.0000.04016.38
5.4.20.0070.06716.38
5.4.10.0030.07316.43
5.4.00.0070.03315.81
5.3.290.0070.06314.76
5.3.280.0030.08314.68
5.3.270.0070.06714.69
5.3.260.0100.06314.66
5.3.250.0030.06014.56
5.3.240.0030.07314.69
5.3.230.0100.04714.83
5.3.220.0030.04714.79
5.3.210.0100.02714.80
5.3.200.0070.03014.56
5.3.190.0030.06714.57
5.3.180.0070.03014.71
5.3.170.0000.03314.65
5.3.160.0070.03314.56
5.3.150.0030.03014.56
5.3.140.0030.04014.57
5.3.130.0070.03314.65
5.3.120.0000.07714.78
5.3.110.0100.06714.59
5.3.100.0100.07014.04
5.3.90.0170.05314.15
5.3.80.0070.03314.15
5.3.70.0000.06313.87
5.3.60.0130.06714.24
5.3.50.0000.04013.91
5.3.40.0030.05314.09
5.3.30.0070.04313.93
5.3.20.0070.05313.82
5.3.10.0030.06713.66
5.3.00.0030.05013.72
5.2.170.0030.06011.91
5.2.160.0030.02711.91
5.2.150.0030.02711.91
5.2.140.0070.05011.91
5.2.130.0070.06011.91
5.2.120.0030.04011.91
5.2.110.0070.02711.91
5.2.100.0030.05311.91
5.2.90.0030.05711.91
5.2.80.0070.02311.91
5.2.70.0030.02311.91
5.2.60.0000.03011.91
5.2.50.0070.05011.91
5.2.40.0000.04311.91
5.2.30.0130.05711.91
5.2.20.0030.06011.91
5.2.10.0030.05711.91
5.2.00.0030.04311.91
5.1.60.0030.02311.91
5.1.50.0030.05011.91
5.1.40.0000.03011.91
5.1.30.0000.03011.91
5.1.20.0030.02311.91
5.1.10.0000.05311.91
5.1.00.0030.03311.91
5.0.50.0000.03311.91
5.0.40.0000.01711.91
5.0.30.0130.03711.91
5.0.20.0000.02011.91
5.0.10.0000.02011.91
5.0.00.0000.03011.91
4.4.90.0000.02711.91
4.4.80.0030.03011.91
4.4.70.0000.03711.91
4.4.60.0000.02011.91
4.4.50.0030.03311.91
4.4.40.0100.02011.91
4.4.30.0030.02011.91
4.4.20.0030.01311.91
4.4.10.0030.01711.91
4.4.00.0000.04311.91
4.3.110.0030.03311.91
4.3.100.0000.02011.91
4.3.90.0030.02011.91
4.3.80.0000.02311.91
4.3.70.0030.01311.91
4.3.60.0000.01711.91
4.3.50.0000.01311.91
4.3.40.0070.04311.91
4.3.30.0000.01711.91
4.3.20.0030.02311.91
4.3.10.0070.01311.91
4.3.00.0000.01311.91

preferences:
48.78 ms | 401 KiB | 5 Q