3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test2(array $a); } 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.60.0120.00318.43
8.3.50.0110.01021.95
8.3.40.0070.00718.70
8.3.30.0160.00619.09
8.3.20.0040.00420.12
8.3.10.0040.00420.37
8.3.00.0050.00319.67
8.2.180.0130.00416.38
8.2.170.0040.01422.96
8.2.160.0030.01020.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0020.00522.11
8.2.110.0090.00022.15
8.2.100.0000.01117.78
8.2.90.0000.00819.09
8.2.80.0000.00917.97
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0000.00818.19
8.2.30.0070.00019.23
8.2.20.0050.00217.74
8.2.10.0050.00317.90
8.2.00.0030.00617.59
8.1.280.0070.00725.92
8.1.270.0050.00522.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0060.00619.14
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0080.00017.13
8.1.180.0000.00718.10
8.1.170.0040.00418.53
8.1.160.0000.00821.96
8.1.150.0000.00718.82
8.1.140.0090.00017.29
8.1.130.0040.00417.76
8.1.120.0040.00417.41
8.1.110.0040.00417.29
8.1.100.0030.00317.32
8.1.90.0040.00317.34
8.1.80.0070.00017.39
8.1.70.0030.00317.40
8.1.60.0040.00417.48
8.1.50.0040.00417.36
8.1.40.0060.00317.33
8.1.30.0080.00017.57
8.1.20.0080.00017.52
8.1.10.0020.00517.41
8.1.00.0000.00817.21
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0030.00317.22
8.0.260.0070.00017.09
8.0.250.0030.00316.82
8.0.240.0050.00216.86
8.0.230.0030.00316.96
8.0.220.0030.00316.76
8.0.210.0070.00016.92
8.0.200.0030.00316.86
8.0.190.0040.00416.84
8.0.180.0000.00716.88
8.0.170.0080.00016.92
8.0.160.0040.00416.86
8.0.150.0040.00416.74
8.0.140.0000.00716.72
8.0.130.0050.00013.24
8.0.120.0080.00016.72
8.0.110.0040.00416.93
8.0.100.0070.00016.76
8.0.90.0040.00416.67
8.0.80.0100.00516.90
8.0.70.0000.00816.67
8.0.60.0000.00716.89
8.0.50.0000.00717.00
8.0.30.0080.01017.05
8.0.20.0040.01917.40
8.0.10.0040.00416.89
8.0.00.0090.00916.79
7.4.330.0020.00215.00
7.4.320.0050.00216.49
7.4.300.0040.00416.48
7.4.290.0030.00316.34
7.4.280.0080.00016.51
7.4.270.0000.00716.33
7.4.260.0030.00316.32
7.4.250.0000.00716.35
7.4.240.0030.00516.48
7.4.230.0070.00016.56
7.4.220.0060.01316.59
7.4.210.0030.01216.48
7.4.200.0050.00216.63
7.4.160.0080.00816.36
7.4.150.0090.01517.40
7.4.140.0140.00617.86
7.4.130.0090.00616.47
7.4.120.0130.00416.43
7.4.110.0030.01316.38
7.4.100.0100.00616.54
7.4.90.0070.01016.45
7.4.80.0060.01616.40
7.4.70.0090.00916.38
7.4.60.0100.00716.39
7.4.50.0030.00316.34
7.4.40.0100.00716.55
7.4.30.0110.00816.27
7.4.00.0030.01214.84
7.3.330.0050.00013.23
7.3.320.0030.00313.20
7.3.310.0050.00216.08
7.3.300.0070.00016.20
7.3.290.0110.00716.28
7.3.280.0100.00616.28
7.3.270.0090.00917.40
7.3.260.0120.00616.57
7.3.250.0130.00716.38
7.3.240.0060.01116.24
7.3.230.0100.00616.39
7.3.210.0070.01016.14
7.3.200.0050.01819.39
7.3.190.0060.01516.37
7.3.180.0120.01216.33
7.3.170.0090.01416.29
7.3.160.0030.01216.54
7.2.330.0120.00616.61
7.2.320.0120.00816.59
7.2.310.0130.00316.54
7.2.300.0090.00916.34
7.2.290.0070.00916.30
7.2.80.0070.00716.36
7.2.60.0060.00916.69
7.2.00.0030.01419.39
7.1.200.0030.01015.79
7.1.100.0030.01018.26
7.1.70.0070.00316.95
7.1.60.0070.01019.32
7.1.50.0070.01416.92
7.1.00.0070.07022.49
7.0.200.0050.00516.63
7.0.140.0130.06321.96
7.0.60.0070.08719.93
7.0.50.0070.04017.87
7.0.40.0100.08320.18
7.0.30.0300.05020.08
7.0.20.0230.05320.06
7.0.10.0000.04720.10
7.0.00.0030.09020.24
5.6.280.0030.07321.05
5.6.210.0130.07720.51
5.6.200.0100.03718.18
5.6.190.0170.06720.68
5.6.180.0430.06720.65
5.6.170.0300.07320.62
5.6.160.0070.03720.57
5.6.150.0070.04318.21
5.6.140.0000.04318.19
5.6.130.0100.08318.13
5.6.120.0130.04020.86
5.6.110.0030.04721.08
5.6.100.0030.04320.98
5.6.90.0200.07320.95
5.6.80.0070.06020.38
5.5.350.0230.07020.44
5.5.340.0000.04018.00
5.5.330.0100.08020.13
5.5.320.0270.04320.27
5.5.310.0270.08020.28
5.5.300.0000.04317.94
5.5.290.0170.06717.96
5.5.280.0030.06020.78
5.5.270.0070.07720.74
5.5.260.0200.07720.73
5.5.250.0030.04320.55
5.5.240.0200.07320.20
5.4.450.0100.05719.48
5.4.440.0730.06319.20
5.4.430.0100.05319.60
5.4.420.0970.05019.16
5.4.410.0870.05319.45
5.4.400.0830.05319.13
5.4.390.0130.06019.13
5.4.380.0470.04318.75
5.4.370.0330.05018.48
5.4.360.0400.05018.54
5.4.350.0330.04718.73
5.4.340.0300.05018.61
5.4.320.0040.03912.50
5.4.310.0040.03912.50
5.4.300.0080.03312.50
5.4.290.0080.04212.50
5.4.280.0050.03512.39
5.4.270.0040.03812.40
5.4.260.0070.03612.40
5.4.250.0040.04912.40
5.4.240.0060.03612.40
5.4.230.0030.03912.39
5.4.220.0090.04012.39
5.4.210.0070.04012.39
5.4.200.0040.04412.39
5.4.190.0050.03612.38
5.4.180.0090.03112.39
5.4.170.0070.04112.40
5.4.160.0100.03712.40
5.4.150.0060.03912.39
5.4.140.0040.03712.07
5.4.130.0070.04012.06
5.4.120.0070.03212.02
5.4.110.0100.03812.02
5.4.100.0040.03612.02
5.4.90.0050.03712.02
5.4.80.0080.03412.02
5.4.70.0050.03512.01
5.4.60.0070.03312.01
5.4.50.0080.03212.01
5.4.40.0040.03712.00
5.4.30.0060.03511.99
5.4.20.0080.03212.00
5.4.10.0130.03212.00
5.4.00.0040.03511.49
5.3.290.0080.05012.80
5.3.280.0050.03712.71
5.3.270.0090.03512.72
5.3.260.0080.03612.72
5.3.250.0070.03612.72
5.3.240.0050.03712.72
5.3.230.0060.03712.71
5.3.220.0040.03812.68
5.3.210.0040.04012.68
5.3.200.0060.03612.68
5.3.190.0040.03912.68
5.3.180.0050.03612.68
5.3.170.0080.04012.67
5.3.160.0050.04212.68
5.3.150.0050.03812.67
5.3.140.0050.03612.66
5.3.130.0040.04012.66
5.3.120.0060.03912.66
5.3.110.0060.03912.66
5.3.100.0070.03512.13
5.3.90.0080.03312.11
5.3.80.0090.03312.10
5.3.70.0020.04012.10
5.3.60.0070.03612.09
5.3.50.0100.04212.04
5.3.40.0050.03812.04
5.3.30.0040.03612.00
5.3.20.0070.03311.78
5.3.10.0050.03711.73
5.3.00.0070.03511.73
5.2.170.0020.0369.23
5.2.160.0070.0279.23
5.2.150.0020.0349.23
5.2.140.0040.0329.23
5.2.130.0030.0329.19
5.2.120.0050.0289.19
5.2.110.0040.0309.20
5.2.100.0050.0289.19
5.2.90.0060.0289.19
5.2.80.0040.0319.19
5.2.70.0050.0329.18
5.2.60.0050.0369.14
5.2.50.0060.0339.11
5.2.40.0050.0349.08
5.2.30.0040.0319.06
5.2.20.0050.0299.04
5.2.10.0050.0268.95
5.2.00.0040.0298.82
5.1.60.0040.0258.09
5.1.50.0040.0268.09
5.1.40.0030.0268.08
5.1.30.0030.0278.43
5.1.20.0100.0248.45
5.1.10.0050.0248.17
5.1.00.0060.0318.17
5.0.50.0020.0216.64
5.0.40.0040.0186.50
5.0.30.0060.0406.31
5.0.20.0060.0276.28
5.0.10.0050.0356.26
5.0.00.0040.0326.25
4.4.90.0020.0174.78
4.4.80.0040.0144.76
4.4.70.0020.0164.76
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0030.0254.70
4.4.30.0040.0144.76
4.4.20.0050.0144.85
4.4.10.0050.0134.84
4.4.00.0050.0224.76
4.3.110.0030.0154.67
4.3.100.0040.0154.66
4.3.90.0040.0134.63
4.3.80.0040.0234.59
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0010.0264.54
4.3.30.0030.0153.28
4.3.20.0040.0143.26
4.3.10.0050.0133.22
4.3.00.0030.0236.79

preferences:
44.1 ms | 401 KiB | 5 Q