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(array $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.0140.00018.76
8.3.30.0140.00019.15
8.3.20.0000.00720.31
8.3.10.0040.00420.36
8.3.00.0080.00019.43
8.2.170.0120.00622.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.13
8.2.110.0090.00022.17
8.2.100.0110.00017.72
8.2.90.0000.00719.05
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0050.00317.68
8.2.50.0030.00618.07
8.2.40.0000.00918.06
8.2.30.0040.00419.14
8.2.20.0000.00717.58
8.2.10.0040.00418.05
8.2.00.0080.00017.66
8.1.270.0080.00023.82
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.04
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.11
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0040.00421.98
8.1.150.0050.00218.73
8.1.140.0070.00017.32
8.1.130.0030.00317.68
8.1.120.0000.00717.44
8.1.110.0040.00417.34
8.1.100.0070.00017.41
8.1.90.0000.00717.39
8.1.80.0000.00717.29
8.1.70.0040.00417.28
8.1.60.0080.00017.57
8.1.50.0030.00517.46
8.1.40.0050.00317.34
8.1.30.0040.00417.45
8.1.20.0000.00817.54
8.1.10.0000.00717.35
8.1.00.0050.00217.31
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0070.00018.36
8.0.270.0040.00417.18
8.0.260.0030.00317.06
8.0.250.0070.00016.82
8.0.240.0030.00316.99
8.0.230.0040.00416.78
8.0.220.0030.00516.85
8.0.210.0060.00016.86
8.0.200.0040.00416.95
8.0.190.0050.00216.84
8.0.180.0040.00416.93
8.0.170.0040.00416.98
8.0.160.0040.00416.82
8.0.150.0070.00016.89
8.0.140.0070.00016.89
8.0.130.0000.00713.29
8.0.120.0040.00416.81
8.0.110.0000.00716.82
8.0.100.0040.00416.75
8.0.90.0040.00416.77
8.0.80.0090.01216.79
8.0.70.0000.00716.74
8.0.60.0050.00216.91
8.0.50.0020.00516.70
8.0.30.0100.00817.10
8.0.20.0080.01317.40
8.0.10.0050.00217.02
8.0.00.0080.00916.66
7.4.330.0050.00015.00
7.4.320.0000.00616.46
7.4.300.0070.00016.45
7.4.290.0030.00316.43
7.4.280.0040.00416.39
7.4.270.0030.00316.43
7.4.260.0070.00016.51
7.4.250.0000.00816.43
7.4.240.0050.00216.47
7.4.230.0030.00316.45
7.4.220.0100.00916.39
7.4.210.0100.01016.43
7.4.200.0000.00616.63
7.4.160.0100.00716.25
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0090.00616.39
7.4.120.0110.00816.40
7.4.110.0060.01116.30
7.4.100.0060.01916.40
7.4.90.0140.00916.58
7.4.80.0060.01216.43
7.4.70.0190.01016.23
7.4.60.0040.01416.51
7.4.50.0000.00416.35
7.4.40.0060.00916.63
7.4.30.0090.01316.59
7.4.00.0030.01115.15
7.3.330.0050.00013.23
7.3.320.0000.00513.34
7.3.310.0050.00216.26
7.3.300.0030.00316.30
7.3.290.0070.00716.38
7.3.280.0140.00516.29
7.3.270.0120.00617.40
7.3.260.0100.00716.46
7.3.250.0090.00816.31
7.3.240.0160.00816.16
7.3.230.0100.00616.59
7.3.210.0100.00616.37
7.3.200.0120.00619.39
7.3.190.0070.01016.29
7.3.180.0110.01316.32
7.3.170.0130.00416.45
7.3.160.0130.00316.32
7.3.10.0060.00916.66
7.3.00.0110.00016.54
7.2.330.0090.00916.57
7.2.320.0120.00916.47
7.2.310.0130.00316.54
7.2.300.0070.01016.49
7.2.290.0100.01016.44
7.2.130.0060.00616.73
7.2.120.0030.01416.44
7.2.110.0000.01716.31
7.2.100.0030.01316.56
7.2.90.0030.01416.79
7.2.80.0000.01016.84
7.2.70.0110.00417.03
7.2.60.0060.00716.64
7.2.50.0030.00716.59
7.2.40.0080.00416.68
7.2.30.0090.00616.81
7.2.20.0070.00416.70
7.2.10.0070.01016.51
7.2.00.0060.00618.08
7.1.250.0040.00715.61
7.1.200.0100.00315.64
7.1.100.1080.00316.07
7.1.70.0000.00816.99
7.1.60.0130.01019.32
7.1.50.0090.01716.54
7.1.00.0000.08022.28
7.0.200.0030.00616.70
7.0.140.0070.07021.97
7.0.70.4630.03019.84
7.0.60.0070.09019.93
7.0.50.0130.07317.94
7.0.40.0030.08020.25
7.0.30.0370.06720.21
7.0.20.0270.04320.25
7.0.10.0330.07020.05
7.0.00.0170.06020.33
5.6.280.0000.07720.82
5.6.210.0100.04020.62
5.6.200.0070.08018.25
5.6.190.0070.07020.38
5.6.180.0030.05720.75
5.6.170.0200.04320.71
5.6.160.0000.07720.42
5.6.150.0130.07318.14
5.6.140.0130.06318.25
5.6.130.0170.07018.25
5.6.120.0070.08321.11
5.6.110.0030.08321.00
5.6.100.0030.08020.98
5.6.90.0130.07321.09
5.6.80.0100.07320.41
5.6.70.0030.08320.28
5.5.350.0100.06020.44
5.5.340.0070.07318.04
5.5.330.0100.08320.27
5.5.320.0030.08320.48
5.5.310.0270.07020.24
5.5.300.0100.07317.98
5.5.290.0170.04717.89
5.5.280.0070.04020.66
5.5.270.0000.05020.96
5.5.260.0170.03720.87
5.5.250.0030.09020.72
5.5.240.0030.07020.17
5.4.450.0270.06019.20
5.4.440.0730.05719.20
5.4.430.0100.05319.58
5.4.420.0730.08019.20
5.4.410.1130.05719.50
5.4.400.0830.05718.87
5.4.390.0870.06018.84
5.4.380.0430.05718.79
5.4.370.0330.05018.80
5.4.360.0400.07018.50
5.4.350.0430.05018.79
5.4.340.0330.07018.75
5.4.320.0090.03212.50
5.4.310.0050.03812.50
5.4.300.0100.03512.51
5.4.290.0060.03712.50
5.4.280.0050.03512.40
5.4.270.0090.03612.40
5.4.260.0040.04012.40
5.4.250.0050.03912.40
5.4.240.0030.03812.40
5.4.230.0030.04012.39
5.4.220.0080.03412.39
5.4.210.0050.04012.39
5.4.200.0090.04212.39
5.4.190.0060.04012.38
5.4.180.0050.03612.39
5.4.170.0130.03612.40
5.4.160.0050.04812.39
5.4.150.0060.04012.39
5.4.140.0070.04012.07
5.4.130.0050.03612.07
5.4.120.0070.03912.02
5.4.110.0050.03712.01
5.4.100.0080.03412.01
5.4.90.0040.03812.01
5.4.80.0060.03612.02
5.4.70.0080.04312.01
5.4.60.0060.03712.01
5.4.50.0050.03912.01
5.4.40.0070.03312.00
5.4.30.0080.03312.00
5.4.20.0070.03512.00
5.4.10.0060.03412.00
5.4.00.0050.04411.49
5.3.290.0080.03712.80
5.3.280.0070.04012.71
5.3.270.0060.04712.73
5.3.260.0050.03912.72
5.3.250.0070.03512.72
5.3.240.0110.03412.72
5.3.230.0060.03712.71
5.3.220.0060.03612.68
5.3.210.0050.03912.68
5.3.200.0060.03612.68
5.3.190.0080.03612.68
5.3.180.0060.03712.67
5.3.170.0010.04012.67
5.3.160.0070.03612.68
5.3.150.0070.04312.68
5.3.140.0060.04012.66
5.3.130.0080.04012.66
5.3.120.0040.04212.65
5.3.110.0030.04012.65
5.3.100.0070.03912.13
5.3.90.0060.03912.11
5.3.80.0060.03912.10
5.3.70.0090.03312.10
5.3.60.0050.04112.09
5.3.50.0100.03712.04
5.3.40.0040.04112.04
5.3.30.0070.03311.98
5.3.20.0090.03911.77
5.3.10.0030.03711.73
5.3.00.0050.03711.73
5.2.170.0070.0279.23
5.2.160.0070.0319.23
5.2.150.0070.0419.23
5.2.140.0050.0329.22
5.2.130.0050.0329.19
5.2.120.0090.0259.19
5.2.110.0020.0319.19
5.2.100.0050.0279.20
5.2.90.0050.0279.19
5.2.80.0030.0349.18
5.2.70.0030.0319.18
5.2.60.0040.0309.14
5.2.50.0020.0329.10
5.2.40.0030.0309.08
5.2.30.0040.0359.06
5.2.20.0060.0279.04
5.2.10.0080.0288.95
5.2.00.0080.0388.82
5.1.60.0050.0248.10
5.1.50.0030.0268.09
5.1.40.0050.0308.07
5.1.30.0060.0268.42
5.1.20.0050.0258.45
5.1.10.0060.0248.17
5.1.00.0060.0248.17
5.0.50.0060.0186.64
5.0.40.0090.0166.50
5.0.30.0040.0336.31
5.0.20.0030.0206.28
5.0.10.0050.0256.25
5.0.00.0020.0386.25
4.4.90.0020.0154.78
4.4.80.0030.0214.76
4.4.70.0020.0224.76
4.4.60.0040.0184.75
4.4.50.0030.0144.77
4.4.40.0020.0254.71
4.4.30.0010.0204.76
4.4.20.0010.0184.85
4.4.10.0010.0164.85
4.4.00.0060.0214.76
4.3.110.0040.0144.67
4.3.100.0020.0154.66
4.3.90.0020.0144.64
4.3.80.0040.0224.58
4.3.70.0050.0214.63
4.3.60.0010.0204.63
4.3.50.0030.0204.63
4.3.40.0030.0284.54
4.3.30.0040.0143.29
4.3.20.0020.0163.26
4.3.10.0020.0183.22
4.3.00.0070.0206.79

preferences:
39.5 ms | 400 KiB | 5 Q