3v4l.org

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

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.0110.00718.18
8.3.60.0030.01018.43
8.3.50.0120.00722.12
8.3.40.0150.00018.59
8.3.30.0100.00319.15
8.3.20.0050.00320.34
8.3.10.0040.00420.40
8.3.00.0050.00319.56
8.2.180.0110.00416.50
8.2.170.0070.01422.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.28
8.2.110.0090.00022.11
8.2.100.0090.00317.78
8.2.90.0030.00618.92
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00817.91
8.2.50.0060.00318.07
8.2.40.0070.00018.19
8.2.30.0040.00419.18
8.2.20.0030.00617.54
8.2.10.0040.00417.92
8.2.00.0070.00017.43
8.1.280.0070.00725.92
8.1.270.0040.00423.79
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.18
8.1.230.0110.00019.10
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0030.00522.04
8.1.150.0040.00418.76
8.1.140.0040.00417.35
8.1.130.0000.00717.68
8.1.120.0080.00017.34
8.1.110.0040.00417.34
8.1.100.0070.00017.32
8.1.90.0000.00817.22
8.1.80.0000.00717.33
8.1.70.0000.00717.21
8.1.60.0040.00417.51
8.1.50.0000.00817.50
8.1.40.0030.00617.46
8.1.30.0000.00817.51
8.1.20.0040.00417.51
8.1.10.0040.00417.52
8.1.00.0030.00517.30
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.27
8.0.270.0030.00317.23
8.0.260.0000.00617.19
8.0.250.0040.00416.80
8.0.240.0000.00716.95
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0000.00716.79
8.0.200.0000.00716.78
8.0.190.0000.00716.83
8.0.180.0000.00716.84
8.0.170.0040.00416.76
8.0.160.0040.00416.88
8.0.150.0040.00316.70
8.0.140.0050.00316.70
8.0.130.0000.00513.24
8.0.120.0060.00316.68
8.0.110.0070.00016.59
8.0.100.0000.00716.81
8.0.90.0070.00016.88
8.0.80.0120.00316.77
8.0.70.0070.00016.81
8.0.60.0040.00416.72
8.0.50.0000.00816.78
8.0.30.0120.00917.08
8.0.20.0110.00817.40
8.0.10.0040.00416.84
8.0.00.0140.00616.52
7.4.330.0050.00015.03
7.4.320.0030.00316.47
7.4.300.0030.00316.58
7.4.290.0030.00316.39
7.4.280.0000.00716.56
7.4.270.0000.00616.55
7.4.260.0030.00516.47
7.4.250.0030.00516.36
7.4.240.0060.00116.45
7.4.230.0050.00216.29
7.4.220.0080.00816.48
7.4.210.0110.00816.50
7.4.200.0000.00716.36
7.4.160.0130.00516.34
7.4.150.0170.00317.40
7.4.140.0160.00517.86
7.4.130.0070.00916.43
7.4.120.0060.01016.40
7.4.110.0130.00316.18
7.4.100.0060.01316.52
7.4.90.0140.00416.39
7.4.80.0080.00816.54
7.4.70.0100.01016.29
7.4.60.0100.00616.36
7.4.50.0090.00016.45
7.4.40.0070.01016.50
7.4.30.0050.01016.43
7.4.10.0090.00914.91
7.4.00.0070.00814.88
7.3.330.0000.00513.31
7.3.320.0020.00213.20
7.3.310.0070.00016.21
7.3.300.0070.00016.23
7.3.290.0110.00416.25
7.3.280.0110.00716.24
7.3.270.0090.00917.40
7.3.260.0140.00316.47
7.3.250.0090.00716.26
7.3.240.0140.00716.21
7.3.230.0060.00916.39
7.3.210.0060.01116.29
7.3.200.0160.00319.39
7.3.190.0070.01016.54
7.3.180.0190.00416.36
7.3.170.0120.00916.37
7.3.160.0130.00316.28
7.3.130.0090.00914.98
7.3.120.0070.01114.95
7.3.110.0000.01814.38
7.3.100.0000.01514.75
7.3.90.0090.00614.38
7.3.80.0080.00314.64
7.3.70.0060.00914.78
7.3.60.0060.00914.43
7.3.50.0120.00314.72
7.3.40.0040.00714.71
7.3.30.0030.01314.64
7.3.20.0060.01016.14
7.3.10.0060.00316.57
7.3.00.0060.00616.73
7.2.330.0110.00716.59
7.2.320.0060.01316.50
7.2.310.0100.01016.31
7.2.300.0090.00616.41
7.2.290.0070.01016.29
7.2.260.0070.01014.83
7.2.250.0070.00714.61
7.2.240.0040.01114.83
7.2.230.0030.01015.07
7.2.220.0070.00714.94
7.2.210.0000.01314.68
7.2.200.0040.01114.90
7.2.190.0040.01114.72
7.2.180.0040.01414.76
7.2.170.0080.00814.65
7.2.160.0060.00614.79
7.2.150.0040.01116.95
7.2.140.0060.00616.59
7.2.130.0060.00916.66
7.2.120.0060.00916.74
7.2.110.0000.01116.72
7.2.100.0090.00616.80
7.2.90.0030.01016.54
7.2.80.0150.00016.67
7.2.70.0060.00916.83
7.2.60.0030.00916.82
7.2.50.0000.01016.66
7.2.40.0030.01016.47
7.2.30.0060.00916.60
7.2.20.0030.00916.81
7.2.10.0070.00716.81
7.2.00.0060.00617.97
7.1.330.0100.00315.84
7.1.320.0000.01515.75
7.1.310.0000.01315.58
7.1.300.0090.00915.50
7.1.290.0000.01215.82
7.1.280.0100.00315.50
7.1.270.0060.00315.63
7.1.260.0050.00515.68
7.1.250.0100.00315.45
7.1.240.0040.00715.79
7.1.230.0030.00815.43
7.1.220.0040.01115.70
7.1.210.0060.00615.41
7.1.200.0080.00515.41
7.1.190.0000.01215.72
7.1.180.0040.00415.74
7.1.170.0090.00615.61
7.1.160.0070.00415.78
7.1.150.0060.00615.81
7.1.140.0040.00415.66
7.1.130.0030.00715.56
7.1.120.0040.00715.68
7.1.110.0120.00615.82
7.1.100.0030.01016.81
7.1.90.0070.01015.60
7.1.80.0040.00715.34
7.1.70.0020.00816.41
7.1.60.0090.01117.51
7.1.50.0080.01016.33
7.1.40.0030.01015.45
7.1.30.0000.01115.73
7.1.20.0070.00715.66
7.1.10.0060.00615.45
7.1.00.0020.04318.94
7.0.330.0030.01015.26
7.0.320.0000.01515.27
7.0.310.0000.01415.10
7.0.300.0070.01015.18
7.0.290.0080.00415.22
7.0.280.0000.01315.15
7.0.270.0030.00715.29
7.0.260.0060.00615.24
7.0.250.0030.01315.23
7.0.240.0100.00315.17
7.0.230.0070.00715.30
7.0.220.0090.00615.10
7.0.210.0050.01415.13
7.0.200.0030.00815.91
7.0.190.0130.00315.23
7.0.180.0030.01515.30
7.0.170.0040.00715.39
7.0.160.0110.00015.16
7.0.150.0040.01115.36
7.0.140.0050.03818.69
7.0.130.0100.00315.45
7.0.120.0080.00415.22
7.0.110.0070.00715.26
7.0.100.0000.01515.33
7.0.90.0070.01015.22
7.0.80.0000.01415.10
7.0.70.0040.01115.50
7.0.60.0070.04218.51
7.0.50.0030.03516.56
7.0.40.0030.05316.61
7.0.30.0150.02816.87
7.0.20.0150.04316.63
7.0.10.0080.04216.83
7.0.00.0130.03816.90
5.6.400.0060.00614.17
5.6.390.0090.00714.20
5.6.380.0070.00714.02
5.6.370.0030.01014.23
5.6.360.0100.00714.20
5.6.350.0030.00514.25
5.6.340.0030.01314.39
5.6.330.0090.00313.85
5.6.320.0100.00714.05
5.6.310.0080.00814.21
5.6.300.0030.01014.13
5.6.290.0070.00714.23
5.6.280.0080.03717.41
5.6.270.0050.01014.54
5.6.260.0030.00614.17
5.6.250.0050.00414.17
5.6.240.0000.01414.06
5.6.230.0040.01114.12
5.6.220.0000.00913.81
5.6.210.0070.03117.24
5.6.200.0070.04616.28
5.6.190.0060.03117.31
5.6.180.0180.03317.41
5.6.170.0140.02017.51
5.6.160.0050.02617.36
5.6.150.0060.02316.22
5.6.140.0070.02316.15
5.6.130.0030.02816.01
5.6.120.0030.02517.58
5.6.110.0090.04217.69
5.6.100.0050.02717.55
5.6.90.0050.02617.67
5.6.80.0060.04817.23
5.6.70.0100.00614.18
5.6.60.0070.00714.36
5.6.50.0070.00714.06
5.6.40.0040.00814.18
5.6.30.0040.00714.04
5.6.20.0040.00814.41
5.6.10.0070.00714.01
5.6.00.0070.00714.05
5.5.380.0030.00614.16
5.5.370.0120.00313.94
5.5.360.0000.00813.77
5.5.350.2190.02217.11
5.5.340.0050.03715.97
5.5.330.0030.03017.10
5.5.320.0300.02916.98
5.5.310.0120.02517.10
5.5.300.0130.03715.87
5.5.290.0050.04216.09
5.5.280.0030.05017.32
5.5.270.0100.04517.38
5.5.260.0050.04017.45
5.5.250.0030.04217.28
5.5.240.0120.03517.12
5.5.230.0060.00913.54
5.5.220.0060.00913.90
5.5.210.0030.00914.00
5.5.200.0110.00313.68
5.5.190.0030.01213.68
5.5.180.0110.01114.31
5.5.170.0030.01414.07
5.5.160.0040.00714.01
5.5.150.0110.00013.86
5.5.140.0070.00313.74
5.5.130.0130.00313.81
5.5.120.0000.01213.66
5.5.110.0040.01113.65
5.5.100.0100.00713.72
5.5.90.0100.00713.92
5.5.80.0000.01113.85
5.5.70.0030.01513.74
5.5.60.0090.00613.65
5.5.50.0060.01014.21
5.5.40.0040.01113.46
5.5.30.0000.01413.50
5.5.20.0070.00413.77
5.5.10.0000.01513.84
5.5.00.0090.00613.63
5.4.450.2180.01615.09
5.4.440.1830.01815.06
5.4.430.1970.02415.14
5.4.420.2090.02415.35
5.4.410.1820.02415.04
5.4.400.1990.01514.86
5.4.390.1520.02614.78
5.4.380.1330.02215.01
5.4.370.2000.02214.96
5.4.360.2090.02014.79
5.4.350.2330.02515.09
5.4.340.2160.02115.19
5.4.330.0060.00610.88
5.4.320.2170.02214.85
5.4.310.2070.02414.88
5.4.300.2270.01814.85
5.4.290.2300.02214.82
5.4.280.1930.02514.54
5.4.270.2380.01914.90
5.4.260.2300.02514.64
5.4.250.2380.02014.97
5.4.240.2400.02215.01
5.4.230.1950.02014.92
5.4.220.1850.02314.78
5.4.210.1890.02614.95
5.4.200.1830.02415.02
5.4.190.2070.02414.84
5.4.180.0050.03714.84
5.4.170.1780.02514.65
5.4.160.1850.02314.76
5.4.150.2250.02015.01
5.4.140.1910.01813.53
5.4.130.2270.02213.69
5.4.120.2120.02013.55
5.4.110.2120.02013.70
5.4.100.1950.02213.38
5.4.90.2200.02013.41
5.4.80.0030.02213.57
5.4.70.0760.03613.47
5.4.60.2230.02013.49
5.4.50.2400.02513.51
5.4.40.1850.02313.66
5.4.30.2230.02313.50
5.4.20.1860.01813.49
5.4.10.1730.01713.52
5.4.00.2040.02113.19
5.3.290.4430.03714.66
5.3.280.4000.03714.60
5.3.270.0070.05014.78
5.3.260.4000.03314.62
5.3.250.3630.03314.75
5.3.240.3570.04014.63
5.3.230.4170.04714.60
5.3.220.3800.02714.59
5.3.210.4600.03014.60
5.3.200.4670.03714.60
5.3.190.3270.03314.60
5.3.180.0430.06314.57
5.3.170.0000.08314.59
5.3.160.3900.03314.60
5.3.150.4470.03314.48
5.3.140.3930.03014.61
5.3.130.4000.03014.64
5.3.120.4000.03714.55
5.3.110.4630.04314.58
5.3.100.3970.04014.07
5.3.90.3800.03714.17
5.3.80.3230.03714.07
5.3.70.4670.04314.07
5.3.60.3270.04314.05
5.3.50.3770.04013.90
5.3.40.3970.03014.12
5.3.30.3770.04013.91
5.3.20.4070.04313.75
5.3.10.3770.03713.69
5.3.00.3700.03313.69
5.2.170.3070.03011.23
5.2.160.3330.03311.30
5.2.150.3070.02311.21
5.2.140.3230.03011.15
5.2.130.3330.02011.17
5.2.120.3830.02711.11
5.2.110.3000.02711.00
5.2.100.3470.02011.05
5.2.90.3370.03011.15
5.2.80.3730.03011.11
5.2.70.3830.02311.10
5.2.60.3270.03311.07
5.2.50.3070.03011.09
5.2.40.2370.03010.95
5.2.30.1830.02710.86
5.2.20.2270.03011.10
5.2.10.2400.03010.89
5.2.00.2300.02010.64
5.1.60.2300.0179.91
5.1.50.3470.02710.04
5.1.40.2300.0209.98
5.1.30.2400.03010.34
5.1.20.2400.02310.35
5.1.10.2400.02310.22
5.1.00.2870.02710.08
5.0.50.1170.0238.45
5.0.40.1170.0238.43
5.0.30.1170.0338.30
5.0.20.1170.0208.16
5.0.10.1200.0208.32
5.0.00.1200.0308.23
4.4.90.1630.0176.02
4.4.80.1400.0176.02
4.4.70.1230.0136.02
4.4.60.1070.0176.02
4.4.50.1300.0236.02
4.4.40.1130.0306.02
4.4.30.1200.0136.02
4.4.20.1030.0176.02
4.4.10.1170.0176.02
4.4.00.1200.0236.02
4.3.110.1230.0106.02
4.3.100.1200.0136.02
4.3.90.1230.0136.02
4.3.80.1200.0276.02
4.3.70.1200.0136.02
4.3.60.1370.0176.02
4.3.50.1130.0176.02
4.3.40.1270.0236.02
4.3.30.0870.0206.02
4.3.20.0900.0276.02
4.3.10.1000.0236.02
4.3.00.0870.0236.02

preferences:
42.97 ms | 401 KiB | 5 Q