3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test2(array $a); } interface I2 extends I { public static function test2(array $a, $b); } 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.130.0060.00318.21
8.3.120.0000.00820.74
8.3.110.0000.00918.50
8.3.100.0100.00716.77
8.3.90.0000.00716.86
8.3.80.0100.00018.43
8.3.70.0160.00618.30
8.3.60.0090.00618.40
8.3.50.0130.00822.05
8.3.40.0070.00718.87
8.3.30.0080.00618.96
8.3.20.0100.00020.37
8.3.10.0040.00420.33
8.3.00.0000.00819.67
8.2.250.0120.00816.34
8.2.240.0170.00317.13
8.2.230.0120.00320.94
8.2.220.0030.00624.06
8.2.210.0040.01126.77
8.2.200.0030.00718.04
8.2.190.0070.00716.58
8.2.180.0070.01016.75
8.2.170.0060.00922.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0140.00326.16
8.2.120.0090.00019.54
8.2.110.0060.00322.02
8.2.100.0080.00417.84
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0030.00617.80
8.2.50.0080.00018.07
8.2.40.0020.00518.19
8.2.30.0040.00419.17
8.2.20.0000.00717.51
8.2.10.0040.00417.89
8.2.00.0030.00617.50
8.1.300.0040.00417.77
8.1.290.0030.00718.88
8.1.280.0070.00725.92
8.1.270.0000.00823.83
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00423.88
8.1.230.0000.01219.16
8.1.220.0000.00717.74
8.1.210.0080.00018.77
8.1.200.0000.01017.10
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00721.93
8.1.150.0050.00318.78
8.1.140.0070.00017.41
8.1.130.0030.00317.68
8.1.120.0000.00717.34
8.1.110.0070.00017.44
8.1.100.0040.00417.35
8.1.90.0050.00217.25
8.1.80.0030.00317.46
8.1.70.0000.00717.29
8.1.60.0030.00617.48
8.1.50.0000.00817.37
8.1.40.0000.00817.41
8.1.30.0040.00417.54
8.1.20.0000.00717.50
8.1.10.0040.00417.43
8.1.00.0030.00517.32
8.0.300.0030.00618.77
8.0.290.0050.00216.75
8.0.280.0000.00818.38
8.0.270.0040.00417.15
8.0.260.0000.00617.16
8.0.250.0070.00016.93
8.0.240.0000.00716.93
8.0.230.0070.00016.92
8.0.220.0070.00016.92
8.0.210.0030.00316.79
8.0.200.0000.00616.91
8.0.190.0030.00316.87
8.0.180.0000.00816.93
8.0.170.0040.00416.93
8.0.160.0000.00716.81
8.0.150.0000.00716.86
8.0.140.0000.00816.77
8.0.130.0030.00313.37
8.0.120.0000.00816.80
8.0.110.0000.00716.87
8.0.100.0040.00416.93
8.0.90.0070.00016.90
8.0.80.0150.00616.84
8.0.70.0050.00216.90
8.0.60.0040.00416.86
8.0.50.0000.00816.74
8.0.30.0120.00716.89
8.0.20.0140.00517.40
8.0.10.0030.00317.05
8.0.00.0060.01116.81
7.4.330.0060.00015.09
7.4.320.0000.00616.47
7.4.300.0040.00416.45
7.4.290.0000.00616.57
7.4.280.0040.00416.55
7.4.270.0030.00316.38
7.4.260.0030.00316.45
7.4.250.0000.00816.53
7.4.240.0010.00616.51
7.4.230.0040.00216.52
7.4.220.0090.01116.52
7.4.210.0090.00616.48
7.4.200.0000.00716.26
7.4.160.0060.00916.32
7.4.150.0080.01117.40
7.4.140.0120.00517.86
7.4.130.0130.00316.40
7.4.120.0060.01216.50
7.4.110.0090.01216.24
7.4.100.0060.00916.30
7.4.90.0130.00416.65
7.4.80.0030.01716.38
7.4.70.0060.01116.46
7.4.60.0040.01116.39
7.4.50.0030.00616.41
7.4.40.0040.01116.48
7.4.30.0120.00916.59
7.4.00.0100.00714.99
7.3.330.0000.00513.02
7.3.320.0000.00513.34
7.3.310.0050.00216.06
7.3.300.0030.00316.21
7.3.290.0070.01116.22
7.3.280.0070.00916.26
7.3.270.0070.01317.40
7.3.260.0110.01116.17
7.3.250.0100.00716.36
7.3.240.0120.00916.34
7.3.230.0100.00716.41
7.3.210.0080.00816.15
7.3.200.0080.00919.39
7.3.190.0100.00716.49
7.3.180.0150.00316.51
7.3.170.0140.00716.38
7.3.160.0100.00716.52
7.3.10.0060.00916.29
7.3.00.0030.00616.67
7.2.330.0030.01416.40
7.2.320.0100.01416.26
7.2.310.0060.01216.33
7.2.300.0060.00916.23
7.2.290.0030.01316.56
7.2.130.0060.00916.46
7.2.120.0040.00716.73
7.2.110.0060.00316.98
7.2.100.0090.00016.58
7.2.90.0070.00716.49
7.2.80.0070.00816.68
7.2.70.0110.00716.90
7.2.60.0110.00616.68
7.2.50.0060.00616.69
7.2.40.0000.01416.70
7.2.30.0040.01116.38
7.2.20.0060.00616.73
7.2.10.0090.00616.60
7.2.00.0070.01018.01
7.1.250.0030.01015.64
7.1.200.0150.00015.49
7.1.100.0000.01018.06
7.1.70.0200.00316.73
7.1.60.0100.01419.32
7.1.50.0070.01616.85
7.1.00.0100.07022.36
7.0.200.0000.00716.34
7.0.140.0070.07021.95
7.0.60.0170.07319.93
7.0.50.0170.07017.87
7.0.40.0130.06320.06
7.0.30.0300.04720.19
7.0.20.0270.07720.33
7.0.10.0070.04020.18
7.0.00.0130.07720.17
5.6.210.0000.04320.69
5.6.200.0100.08018.16
5.6.190.0030.08720.48
5.6.180.3230.04320.64
5.6.170.0330.06720.51
5.6.160.0070.05320.54
5.6.150.0030.04018.18
5.6.140.0130.07718.27
5.6.130.0030.04318.29
5.6.120.0000.04720.97
5.6.110.0030.07021.02
5.6.100.0100.08020.98
5.6.90.0070.06021.01
5.6.80.0230.05320.44
5.6.70.0370.06720.38
5.5.350.0370.05720.39
5.5.340.0000.05718.04
5.5.330.0070.08320.43
5.5.320.0330.07020.27
5.5.310.0330.04720.34
5.5.300.0030.08018.10
5.5.290.0030.08017.97
5.5.280.0100.04020.99
5.5.270.0000.05020.89
5.5.260.0100.06320.88
5.5.250.0130.07320.67
5.5.240.0170.04320.16
5.4.450.0830.06319.59
5.4.440.0970.08319.57
5.4.430.0830.06319.33
5.4.420.0100.05719.38
5.4.410.0930.05019.57
5.4.400.0900.04719.16
5.4.390.0830.05019.25
5.4.380.0400.06318.63
5.4.370.0470.04718.56
5.4.360.0500.06318.70
5.4.350.0370.07018.70
5.4.340.0570.06718.75
5.4.320.0090.03712.51
5.4.310.0070.03512.51
5.4.300.0060.03612.51
5.4.290.0060.03912.50
5.4.280.0040.03712.40
5.4.270.0040.03712.40
5.4.260.0140.04712.40
5.4.250.0040.04512.40
5.4.240.0080.03412.40
5.4.230.0040.03912.39
5.4.220.0080.03412.39
5.4.210.0040.04312.39
5.4.200.0040.03912.39
5.4.190.0060.03512.39
5.4.180.0040.04412.39
5.4.170.0050.04012.40
5.4.160.0080.03512.39
5.4.150.0050.03812.39
5.4.140.0030.04012.07
5.4.130.0030.03912.06
5.4.120.0050.03612.02
5.4.110.0080.03912.02
5.4.100.0030.04512.02
5.4.90.0050.04012.02
5.4.80.0090.03212.02
5.4.70.0030.03612.01
5.4.60.0050.03612.01
5.4.50.0090.03212.02
5.4.40.0040.04712.00
5.4.30.0030.03812.00
5.4.20.0040.03712.00
5.4.10.0030.03712.00
5.4.00.0080.03311.49
5.3.290.0050.04112.80
5.3.280.0080.03512.71
5.3.270.0070.03812.72
5.3.260.0060.03912.72
5.3.250.0050.04712.72
5.3.240.0060.03712.72
5.3.230.0080.03812.71
5.3.220.0040.04012.68
5.3.210.0090.03612.68
5.3.200.0050.03812.68
5.3.190.0070.03512.68
5.3.180.0050.03612.68
5.3.170.0090.04112.67
5.3.160.0040.03812.67
5.3.150.0110.03812.68
5.3.140.0090.03812.66
5.3.130.0080.04112.66
5.3.120.0100.03512.66
5.3.110.0050.03912.65
5.3.100.0050.03712.13
5.3.90.0110.04012.11
5.3.80.0050.03812.10
5.3.70.0090.03412.10
5.3.60.0060.03612.09
5.3.50.0050.04012.04
5.3.40.0070.03412.04
5.3.30.0040.03611.99
5.3.20.0060.03511.78
5.3.10.0060.03411.74
5.3.00.0060.03711.72
5.2.170.0040.0309.23
5.2.160.0050.0279.23
5.2.150.0060.0319.23
5.2.140.0020.0339.23
5.2.130.0080.0319.19
5.2.120.0050.0299.19
5.2.110.0050.0319.20
5.2.100.0050.0309.19
5.2.90.0050.0299.19
5.2.80.0030.0329.19
5.2.70.0030.0329.19
5.2.60.0060.0289.13
5.2.50.0040.0319.10
5.2.40.0050.0289.08
5.2.30.0050.0349.06
5.2.20.0040.0299.05
5.2.10.0040.0288.95
5.2.00.0020.0318.82
5.1.60.0060.0268.10
5.1.50.0040.0268.09
5.1.40.0070.0268.08
5.1.30.0050.0258.43
5.1.20.0040.0278.45
5.1.10.0030.0268.17
5.1.00.0060.0238.17
5.0.50.0030.0216.64
5.0.40.0030.0256.50
5.0.30.0010.0336.31
5.0.20.0020.0206.28
5.0.10.0010.0236.26
5.0.00.0010.0326.25
4.4.90.0040.0154.78
4.4.80.0040.0224.76
4.4.70.0040.0144.75
4.4.60.0040.0144.75
4.4.50.0020.0164.77
4.4.40.0040.0244.71
4.4.30.0000.0184.76
4.4.20.0020.0174.85
4.4.10.0020.0164.85
4.4.00.0020.0264.76
4.3.110.0020.0174.67
4.3.100.0030.0154.66
4.3.90.0030.0174.64
4.3.80.0030.0274.58
4.3.70.0050.0134.63
4.3.60.0030.0144.62
4.3.50.0040.0164.63
4.3.40.0040.0224.54
4.3.30.0010.0173.28
4.3.20.0040.0133.25
4.3.10.0020.0153.22
4.3.00.0170.0278.16

preferences:
75.67 ms | 403 KiB | 5 Q