3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test2(array $a); } abstract class A implements I { const A = 14; protected static $var = 17; public function test(array $a){ return __METHOD__; } } class B extends A { const A = 15; public function test($a){ return __METHOD__; } public static function test2(array $a){} } $v = new B(); var_dump($v->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.40.0070.00718.52
8.3.30.0070.01519.04
8.3.20.0040.00420.34
8.3.10.0050.00320.43
8.3.00.0080.00019.56
8.2.170.0110.00722.96
8.2.160.0070.00720.31
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00022.06
8.2.110.0030.00622.25
8.2.100.0120.00017.78
8.2.90.0000.00819.21
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0070.00018.02
8.2.30.0080.00019.19
8.2.20.0070.00017.66
8.2.10.0080.00017.96
8.2.00.0030.00517.68
8.1.270.0050.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.86
8.1.230.0000.01119.18
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0050.00318.70
8.1.160.0040.00422.05
8.1.150.0040.00418.88
8.1.140.0030.00517.32
8.1.130.0000.00717.81
8.1.120.0030.00317.48
8.1.110.0000.00817.33
8.1.100.0070.00017.47
8.1.90.0000.00717.49
8.1.80.0000.00717.45
8.1.70.0080.00017.46
8.1.60.0030.00617.61
8.1.50.0030.00617.57
8.1.40.0040.00417.56
8.1.30.0040.00417.56
8.1.20.0050.00217.61
8.1.10.0000.00717.47
8.1.00.0000.00817.39
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0030.00317.30
8.0.260.0070.00017.25
8.0.250.0000.00816.99
8.0.240.0000.00716.94
8.0.230.0070.00016.93
8.0.220.0000.00716.73
8.0.210.0060.00016.86
8.0.200.0050.00316.84
8.0.190.0070.00017.00
8.0.180.0070.00016.92
8.0.170.0070.00016.92
8.0.160.0030.00316.86
8.0.150.0040.00416.88
8.0.140.0040.00416.71
8.0.130.0000.00613.28
8.0.120.0000.00816.96
8.0.110.0000.00716.88
8.0.100.0000.00716.94
8.0.90.0000.00816.95
8.0.80.0140.00616.91
8.0.70.0040.00416.93
8.0.60.0000.00716.72
8.0.50.0030.00317.00
8.0.30.0130.00817.22
8.0.20.0130.00617.40
8.0.10.0070.00016.88
8.0.00.0110.00616.74
7.4.330.0050.00015.00
7.4.320.0030.00316.55
7.4.300.0080.00016.61
7.4.290.0000.00716.49
7.4.280.0040.00416.39
7.4.270.0040.00416.54
7.4.260.0030.00316.38
7.4.250.0030.00316.45
7.4.240.0050.00216.50
7.4.230.0000.00716.57
7.4.220.0070.01016.51
7.4.210.0170.00316.60
7.4.200.0030.00316.58
7.4.160.0130.00316.60
7.4.150.0130.01017.40
7.4.140.0090.01017.86
7.4.130.0060.01016.47
7.4.120.0090.00816.62
7.4.110.0100.00616.52
7.4.100.0070.01016.41
7.4.90.0070.01016.63
7.4.80.0070.01016.48
7.4.70.0130.00916.48
7.4.60.0040.01216.59
7.4.50.0000.00516.64
7.4.40.0080.01016.60
7.4.30.0060.00916.57
7.4.00.0070.00714.68
7.3.330.0060.00013.29
7.3.320.0060.00013.10
7.3.310.0080.00016.31
7.3.300.0000.00716.32
7.3.290.0080.01116.29
7.3.280.0060.01116.29
7.3.270.0070.01517.40
7.3.260.0040.01316.37
7.3.250.0100.00916.36
7.3.240.0060.01116.23
7.3.230.0060.01316.39
7.3.210.0070.01116.25
7.3.200.0090.01019.39
7.3.190.0100.00716.39
7.3.180.0050.01416.36
7.3.170.0060.01616.32
7.3.160.0090.00616.25
7.3.120.0030.01314.64
7.3.110.0090.00614.61
7.3.100.0040.00714.77
7.3.90.0040.01115.02
7.3.80.0070.01014.70
7.3.70.0060.01214.78
7.3.60.0110.00614.63
7.3.50.0000.01414.77
7.3.40.0060.00314.93
7.3.30.0060.00914.67
7.3.20.0030.01016.63
7.3.10.0030.01016.46
7.3.00.0130.00316.40
7.2.330.0150.00316.84
7.2.320.0090.00916.51
7.2.310.0100.00716.70
7.2.300.0110.00516.38
7.2.290.0060.01516.43
7.2.240.0060.01315.23
7.2.230.0060.01314.84
7.2.220.0070.01015.12
7.2.210.0090.00614.89
7.2.200.0030.01314.96
7.2.190.0050.00814.99
7.2.180.0000.01414.90
7.2.170.0070.00714.89
7.2.160.0000.01614.94
7.2.150.0090.00616.93
7.2.140.0030.00616.91
7.2.130.0000.01516.70
7.2.120.0130.00316.71
7.2.110.0120.00316.84
7.2.100.0090.00316.80
7.2.90.0030.00916.95
7.2.80.0060.00616.98
7.2.70.0110.00416.62
7.2.60.0050.01016.90
7.2.50.0030.01216.88
7.2.40.0030.01416.68
7.2.30.0070.01016.70
7.2.20.0030.00616.57
7.2.10.0150.00016.56
7.2.00.0050.00918.05
7.1.330.0100.00315.60
7.1.320.0000.01615.80
7.1.310.0120.00315.68
7.1.300.0030.01015.49
7.1.290.0100.00615.49
7.1.280.0070.00715.64
7.1.270.0140.00315.61
7.1.260.0060.00315.74
7.1.250.0100.00315.71
7.1.200.0080.00315.53
7.1.100.0000.00917.82
7.1.70.0070.00317.05
7.1.60.0100.01319.32
7.1.50.0040.01816.96
7.1.00.0030.07722.35
7.0.200.0000.01016.78
7.0.140.0000.07721.99
7.0.60.0100.05020.00
7.0.50.0130.04017.69
7.0.40.0030.04320.04
7.0.30.0330.08020.24
7.0.20.0200.07720.07
7.0.10.0030.06720.10
7.0.00.0130.05320.19
5.6.280.0070.07021.14
5.6.210.0070.03720.52
5.6.200.0030.09018.19
5.6.190.0000.04720.47
5.6.180.0400.08320.64
5.6.170.0230.03320.71
5.6.160.0070.05020.46
5.6.150.0100.04318.28
5.6.140.0070.05018.21
5.6.130.0200.06018.23
5.6.120.0100.07321.11
5.6.110.0070.05321.00
5.6.100.0030.08321.14
5.6.90.0000.04320.96
5.6.80.0030.08720.44
5.6.70.4600.04320.38
5.5.350.0200.07320.33
5.5.340.0130.08017.99
5.5.330.0030.09020.32
5.5.320.0300.04720.25
5.5.310.0270.03720.31
5.5.300.0030.08018.03
5.5.290.0070.08018.01
5.5.280.0100.08020.69
5.5.270.0100.03720.86
5.5.260.0130.08320.95
5.5.250.0070.06020.57
5.5.240.0130.04320.36
5.4.450.0200.07019.47
5.4.440.0870.05719.55
5.4.430.0770.05719.34
5.4.420.0700.06019.55
5.4.410.0870.05319.18
5.4.400.0870.05019.38
5.4.390.0770.05018.84
5.4.380.0330.05318.48
5.4.370.0400.06318.72
5.4.360.0370.04718.78
5.4.350.0370.06318.50
5.4.340.0400.05318.75
5.4.320.0040.03712.50
5.4.310.0040.03812.50
5.4.300.0040.03712.50
5.4.290.0100.04212.50
5.4.280.0050.05112.40
5.4.270.0050.03812.39
5.4.260.0050.03712.40
5.4.250.0080.03512.40
5.4.240.0050.03612.39
5.4.230.0070.03612.39
5.4.220.0040.03612.39
5.4.210.0030.03812.39
5.4.200.0030.04012.39
5.4.190.0080.03412.38
5.4.180.0070.03412.39
5.4.170.0050.03512.40
5.4.160.0050.03512.39
5.4.150.0090.04212.39
5.4.140.0040.04412.07
5.4.130.0040.04112.06
5.4.120.0070.04212.02
5.4.110.0050.04312.02
5.4.100.0080.03712.02
5.4.90.0050.04312.01
5.4.80.0080.03312.02
5.4.70.0070.03212.02
5.4.60.0070.03112.01
5.4.50.0040.03512.01
5.4.40.0040.03512.00
5.4.30.0040.03612.00
5.4.20.0070.03212.00
5.4.10.0070.03211.99
5.4.00.0050.04111.49
5.3.290.0050.03812.80
5.3.280.0100.05212.71
5.3.270.0070.04412.72
5.3.260.0040.04212.72
5.3.250.0020.04112.72
5.3.240.0100.03912.72
5.3.230.0060.03612.71
5.3.220.0060.03712.68
5.3.210.0070.03612.68
5.3.200.0090.04912.68
5.3.190.0060.04712.68
5.3.180.0070.04212.68
5.3.170.0040.03812.67
5.3.160.0050.03712.67
5.3.150.0050.03912.67
5.3.140.0070.03412.66
5.3.130.0060.03712.66
5.3.120.0040.04012.66
5.3.110.0070.03612.65
5.3.100.0040.03812.13
5.3.90.0060.03512.10
5.3.80.0090.03812.09
5.3.70.0040.03712.10
5.3.60.0060.04112.08
5.3.50.0060.03512.03
5.3.40.0090.04812.03
5.3.30.0080.05411.99
5.3.20.0090.03611.77
5.3.10.0070.04411.73
5.3.00.0070.03711.72
5.2.170.0030.0319.23
5.2.160.0040.0309.23
5.2.150.0050.0309.23
5.2.140.0030.0329.23
5.2.130.0090.0259.19
5.2.120.0050.0309.19
5.2.110.0050.0379.20
5.2.100.0070.0369.18
5.2.90.0050.0289.19
5.2.80.0030.0309.18
5.2.70.0060.0339.18
5.2.60.0040.0319.13
5.2.50.0060.0359.10
5.2.40.0030.0299.08
5.2.30.0050.0389.06
5.2.20.0060.0299.04
5.2.10.0010.0308.95
5.2.00.0060.0468.81
5.1.60.0060.0248.09
5.1.50.0030.0298.09
5.1.40.0040.0298.08
5.1.30.0060.0318.43
5.1.20.0040.0268.45
5.1.10.0050.0248.16
5.1.00.0060.0338.16
5.0.50.0040.0196.64
5.0.40.0020.0196.50
5.0.30.0030.0316.31
5.0.20.0050.0166.28
5.0.10.0040.0306.26
5.0.00.0030.0416.25
4.4.90.0020.0154.78
4.4.80.0010.0164.76
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0010.0294.76
4.4.20.0030.0204.84
4.4.10.0060.0174.85
4.4.00.0000.0264.76
4.3.110.0050.0214.67
4.3.100.0020.0214.66
4.3.90.0010.0154.63
4.3.80.0020.0244.59
4.3.70.0020.0144.63
4.3.60.0050.0194.63
4.3.50.0010.0164.62
4.3.40.0030.0234.54
4.3.30.0030.0153.28
4.3.20.0030.0203.25
4.3.10.0030.0173.22
4.3.00.0000.0236.79

preferences:
36.99 ms | 400 KiB | 5 Q