3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { const C = 12; public static function test(array $a); } abstract 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, $b){ 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.60.0070.00718.55
8.3.50.0120.00721.89
8.3.40.0090.00918.54
8.3.30.0090.00618.98
8.3.20.0070.00020.31
8.3.10.0050.00320.40
8.3.00.0000.00819.56
8.2.180.0070.00716.38
8.2.170.0080.00822.96
8.2.160.0110.00320.57
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0100.00022.24
8.2.110.0030.00622.07
8.2.100.0080.00418.09
8.2.90.0040.00419.13
8.2.80.0030.00617.97
8.2.70.0030.00517.38
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0080.00017.94
8.2.30.0000.00719.31
8.2.20.0000.00717.47
8.2.10.0050.00317.81
8.2.00.0050.00317.67
8.1.280.0110.00325.92
8.1.270.0040.00423.84
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00622.09
8.1.230.0100.00019.00
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0150.00017.09
8.1.190.0030.00617.11
8.1.180.0000.00718.10
8.1.170.0030.00618.63
8.1.160.0000.00721.97
8.1.150.0000.00718.68
8.1.140.0000.00817.19
8.1.130.0000.00817.68
8.1.120.0070.00017.35
8.1.110.0040.00417.23
8.1.100.0030.00417.35
8.1.90.0000.00817.33
8.1.80.0050.00217.31
8.1.70.0070.00017.22
8.1.60.0030.00617.48
8.1.50.0040.00417.43
8.1.40.0000.00817.35
8.1.30.0000.00817.56
8.1.20.0040.00417.45
8.1.10.0030.00617.34
8.1.00.0080.00017.26
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.32
8.0.270.0000.00717.13
8.0.260.0000.00617.09
8.0.250.0030.00316.86
8.0.240.0040.00416.79
8.0.230.0000.00716.88
8.0.220.0030.00316.86
8.0.210.0000.00716.88
8.0.200.0030.00516.76
8.0.190.0050.00216.76
8.0.180.0000.00716.77
8.0.170.0050.00216.90
8.0.160.0040.00416.75
8.0.150.0070.00016.78
8.0.140.0070.00016.82
8.0.130.0030.00313.30
8.0.120.0040.00416.80
8.0.110.0030.00516.81
8.0.100.0000.00816.89
8.0.90.0040.00416.94
8.0.80.0040.01116.84
8.0.70.0040.00416.68
8.0.60.0000.00716.85
8.0.50.0020.00516.81
8.0.30.0110.00716.98
8.0.20.0110.01117.40
8.0.10.0000.00717.07
8.0.00.0060.01316.66
7.4.330.0030.00215.00
7.4.320.0030.00316.34
7.4.300.0030.00316.50
7.4.290.0000.00716.49
7.4.280.0060.00316.36
7.4.270.0060.00016.45
7.4.260.0000.00716.45
7.4.250.0000.00716.41
7.4.240.0020.00516.48
7.4.230.0000.00716.28
7.4.220.0090.00816.56
7.4.210.0100.00316.32
7.4.200.0040.00416.56
7.4.160.0120.00316.31
7.4.150.0190.00617.40
7.4.140.0120.01117.86
7.4.130.0070.01016.48
7.4.120.0080.01116.52
7.4.110.0130.00316.53
7.4.100.0120.01216.46
7.4.90.0120.00616.45
7.4.80.0090.01216.37
7.4.70.0060.01216.42
7.4.60.0120.00316.44
7.4.50.0000.00416.43
7.4.40.0130.00316.48
7.4.30.0100.00616.42
7.4.00.0100.00715.13
7.3.330.0000.00613.31
7.3.320.0000.00513.32
7.3.310.0070.00016.15
7.3.300.0070.00016.25
7.3.290.0060.00916.29
7.3.280.0070.00916.29
7.3.270.0130.00617.40
7.3.260.0090.00916.57
7.3.250.0090.00816.35
7.3.240.0070.01016.31
7.3.230.0070.01016.39
7.3.210.0070.01016.25
7.3.200.0110.00819.39
7.3.190.0060.01616.21
7.3.180.0130.01016.25
7.3.170.0130.01316.54
7.3.160.0090.00616.23
7.2.330.0090.00916.42
7.2.320.0130.00616.63
7.2.310.0060.01016.31
7.2.300.0100.00616.63
7.2.290.0190.00316.42
7.2.60.0090.00616.53
7.1.200.0000.01315.54
7.1.70.0030.00716.76
7.1.60.0110.01419.32
7.1.50.0040.00716.96
7.1.00.0000.08022.31
7.0.200.0030.00716.72
7.0.140.0000.07022.04
7.0.60.0070.06320.03
7.0.50.0070.08017.88
7.0.40.0170.07020.05
7.0.30.0300.07720.08
7.0.20.0370.06320.09
7.0.10.0000.09020.07
7.0.00.0070.05720.09
5.6.280.0000.07721.03
5.6.210.0170.07720.63
5.6.200.0100.07318.13
5.6.190.0130.08020.39
5.6.180.0530.07320.61
5.6.170.0330.08020.53
5.6.160.0000.04720.52
5.6.150.0030.08318.25
5.6.140.0100.05718.28
5.6.130.0100.08018.12
5.6.120.0230.03320.81
5.6.110.0030.07021.02
5.6.100.0070.03720.98
5.6.90.0070.08020.96
5.6.80.0070.07720.49
5.5.350.0230.07320.47
5.5.340.0100.03017.93
5.5.330.0070.05020.29
5.5.320.0330.04720.35
5.5.310.0270.08020.34
5.5.300.0030.08717.99
5.5.290.0070.06317.96
5.5.280.0100.06020.79
5.5.270.0130.07320.77
5.5.260.0030.05020.90
5.5.250.0070.08320.62
5.5.240.0070.04320.23
5.4.450.0270.05719.65
5.4.440.0230.07019.61
5.4.430.0200.05719.16
5.4.420.0170.05019.30
5.4.410.0300.04319.34
5.4.400.0770.05318.98
5.4.390.0870.05719.26
5.4.380.0230.05718.48
5.4.370.0400.05018.75
5.4.360.0330.04718.74
5.4.350.0400.07318.48
5.4.340.0470.06718.50
5.4.320.0080.03312.51
5.4.310.0070.03712.50
5.4.300.0040.03712.51
5.4.290.0070.03812.51
5.4.280.0090.03612.40
5.4.270.0130.03912.40
5.4.260.0060.03712.40
5.4.250.0030.04012.40
5.4.240.0050.03912.40
5.4.230.0060.04912.39
5.4.220.0090.04812.39
5.4.210.0070.03412.39
5.4.200.0040.03812.39
5.4.190.0070.03512.39
5.4.180.0060.03612.39
5.4.170.0040.03812.40
5.4.160.0050.03612.39
5.4.150.0080.03412.39
5.4.140.0080.03412.07
5.4.130.0060.03512.07
5.4.120.0070.03812.03
5.4.110.0060.04712.02
5.4.100.0080.03312.02
5.4.90.0080.03512.02
5.4.80.0080.03512.02
5.4.70.0090.03412.02
5.4.60.0040.03812.02
5.4.50.0050.03612.02
5.4.40.0040.03512.00
5.4.30.0080.04312.00
5.4.20.0050.04012.00
5.4.10.0050.03612.00
5.4.00.0070.03311.49
5.3.290.0080.03712.80
5.3.280.0040.04312.71
5.3.270.0050.04012.72
5.3.260.0070.03712.72
5.3.250.0090.03912.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0050.03912.68
5.3.210.0060.04512.68
5.3.200.0080.03412.68
5.3.190.0050.03812.67
5.3.180.0050.03812.67
5.3.170.0070.03512.67
5.3.160.0070.03712.67
5.3.150.0060.04212.68
5.3.140.0070.03612.66
5.3.130.0050.03912.66
5.3.120.0040.04012.66
5.3.110.0080.03612.66
5.3.100.0060.05012.12
5.3.90.0080.04212.11
5.3.80.0050.03612.10
5.3.70.0060.03412.10
5.3.60.0050.03712.08
5.3.50.0030.03912.03
5.3.40.0040.03712.03
5.3.30.0070.03711.98
5.3.20.0060.03411.77
5.3.10.0050.03511.75
5.3.00.0070.03411.72
5.2.170.0050.0309.23
5.2.160.0050.0289.23
5.2.150.0080.0299.23
5.2.140.0030.0319.22
5.2.130.0040.0329.19
5.2.120.0050.0399.18
5.2.110.0030.0319.19
5.2.100.0030.0299.19
5.2.90.0080.0349.18
5.2.80.0060.0299.18
5.2.70.0070.0289.18
5.2.60.0030.0319.13
5.2.50.0020.0339.10
5.2.40.0020.0319.08
5.2.30.0060.0299.05
5.2.20.0060.0269.04
5.2.10.0040.0288.95
5.2.00.0030.0308.82
5.1.60.0040.0288.09
5.1.50.0030.0318.09
5.1.40.0030.0258.07
5.1.30.0030.0278.42
5.1.20.0040.0268.45
5.1.10.0020.0278.17
5.1.00.0060.0248.17
5.0.50.0040.0216.64
5.0.40.0040.0186.50
5.0.30.0070.0266.31
5.0.20.0020.0236.28
5.0.10.0030.0256.26
5.0.00.0010.0326.25
4.4.90.0040.0144.77
4.4.80.0030.0144.75
4.4.70.0030.0154.75
4.4.60.0030.0144.75
4.4.50.0040.0144.77
4.4.40.0030.0244.71
4.4.30.0030.0154.76
4.4.20.0040.0174.84
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0040.0154.67
4.3.100.0020.0154.67
4.3.90.0020.0224.63
4.3.80.0050.0224.58
4.3.70.0020.0154.63
4.3.60.0020.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0000.0183.29
4.3.20.0020.0163.25
4.3.10.0030.0143.22
4.3.00.0030.0236.78

preferences:
42.09 ms | 401 KiB | 5 Q