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 __FILE__; } } class B extends A { const A = 15; public static function test(array $a, $b){ return __FILE__; } } 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.0150.00018.54
8.3.50.0100.00821.99
8.3.40.0060.00918.48
8.3.30.0080.00818.96
8.3.20.0040.00420.34
8.3.10.0000.00820.53
8.3.00.0050.00319.67
8.2.180.0090.00616.63
8.2.170.0170.00022.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0000.00722.05
8.2.110.0050.00522.12
8.2.100.0100.00017.47
8.2.90.0060.00318.92
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0080.00017.68
8.2.50.0000.00918.07
8.2.40.0000.00818.06
8.2.30.0000.00819.31
8.2.20.0070.00017.57
8.2.10.0030.00617.86
8.2.00.0040.00417.54
8.1.280.0070.00725.92
8.1.270.0080.00023.98
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.88
8.1.230.0090.00518.86
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00817.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0050.00318.59
8.1.160.0070.00021.96
8.1.150.0000.00818.64
8.1.140.0050.00317.33
8.1.130.0000.00717.78
8.1.120.0030.00317.23
8.1.110.0040.00417.37
8.1.100.0070.00017.41
8.1.90.0000.00717.20
8.1.80.0030.00317.37
8.1.70.0070.00017.30
8.1.60.0040.00417.43
8.1.50.0090.00017.43
8.1.40.0040.00417.31
8.1.30.0040.00417.50
8.1.20.0040.00417.55
8.1.10.0040.00417.34
8.1.00.0020.00517.23
8.0.300.0050.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.33
8.0.270.0050.00317.13
8.0.260.0000.00617.12
8.0.250.0030.00316.95
8.0.240.0000.00816.79
8.0.230.0040.00416.90
8.0.220.0070.00016.81
8.0.210.0070.00016.71
8.0.200.0080.00016.82
8.0.190.0040.00416.79
8.0.180.0000.00816.78
8.0.170.0000.00716.86
8.0.160.0000.00716.68
8.0.150.0050.00316.79
8.0.140.0040.00416.75
8.0.130.0030.00313.34
8.0.120.0000.00816.70
8.0.110.0000.00716.73
8.0.100.0070.00016.68
8.0.90.0040.00416.78
8.0.80.0060.00916.89
8.0.70.0070.00016.84
8.0.60.0040.00416.91
8.0.50.0000.00816.95
8.0.30.0140.00816.97
8.0.20.0090.01317.40
8.0.10.0070.00016.76
8.0.00.0110.00916.59
7.4.330.0000.00515.00
7.4.320.0030.00316.49
7.4.300.0030.00316.35
7.4.290.0000.00616.55
7.4.280.0000.00816.49
7.4.270.0070.00016.52
7.4.260.0050.00316.52
7.4.250.0040.00416.31
7.4.240.0000.00716.49
7.4.230.0040.00416.47
7.4.220.0090.00916.63
7.4.210.0040.01416.57
7.4.200.0000.00816.59
7.4.160.0090.00916.32
7.4.150.0060.01217.40
7.4.140.0110.00717.86
7.4.130.0100.00716.48
7.4.120.0080.01116.52
7.4.110.0100.00716.39
7.4.100.0180.00316.25
7.4.90.0090.00916.34
7.4.80.0090.00916.41
7.4.70.0030.01916.51
7.4.60.0060.00916.30
7.4.50.0030.00616.34
7.4.40.0060.01016.44
7.4.30.0060.00916.48
7.4.00.0060.00615.13
7.3.330.0030.00313.32
7.3.320.0000.00613.32
7.3.310.0000.00716.39
7.3.300.0040.00416.26
7.3.290.0030.01116.21
7.3.280.0040.01316.29
7.3.270.0100.01017.40
7.3.260.0150.00316.32
7.3.250.0070.01316.29
7.3.240.0070.01016.24
7.3.230.0080.00816.39
7.3.210.0100.00716.37
7.3.200.0130.01019.39
7.3.190.0110.00616.30
7.3.180.0120.00916.16
7.3.170.0060.01616.36
7.3.160.0090.00616.38
7.2.330.0140.00716.62
7.2.320.0030.01616.46
7.2.310.0060.01216.68
7.2.300.0030.01216.23
7.2.290.0100.00716.61
7.2.60.0110.00016.88
7.2.00.0070.00719.46
7.1.200.0080.00015.62
7.1.100.0030.00918.07
7.1.70.0020.00517.05
7.1.60.0120.00919.32
7.1.50.0100.01316.73
7.1.00.0100.07022.31
7.0.200.0000.00916.32
7.0.140.0070.07022.02
7.0.60.0030.06319.84
7.0.50.0030.04017.96
7.0.40.0030.04720.23
7.0.30.0200.05720.08
7.0.20.0270.07320.23
7.0.10.0170.07320.15
7.0.00.0100.08020.09
5.6.280.0030.07020.91
5.6.210.0170.07020.47
5.6.200.0030.07018.24
5.6.190.0000.05720.52
5.6.180.0400.05320.78
5.6.170.0230.09720.49
5.6.160.0100.06720.56
5.6.150.0030.04318.18
5.6.140.0100.05318.18
5.6.130.0130.03318.21
5.6.120.0030.04021.10
5.6.110.0130.08021.04
5.6.100.0070.04021.05
5.6.90.0100.07321.02
5.6.80.0030.07720.54
5.5.350.0130.07320.42
5.5.340.0130.04717.96
5.5.330.0100.06720.43
5.5.320.0370.06320.28
5.5.310.0270.08020.30
5.5.300.0170.07318.04
5.5.290.0070.04318.07
5.5.280.0100.08020.99
5.5.270.0100.08320.90
5.5.260.0100.08020.88
5.5.250.0030.04720.59
5.5.240.0170.07320.27
5.4.450.0370.05319.43
5.4.440.0800.08019.71
5.4.430.0170.05019.47
5.4.420.1230.07719.54
5.4.410.1070.07019.45
5.4.400.0870.05318.84
5.4.390.1000.06019.31
5.4.380.0330.05318.65
5.4.370.0370.05018.52
5.4.360.0300.05718.79
5.4.350.0400.06318.79
5.4.340.0470.06018.79
5.4.320.0050.03812.51
5.4.310.0040.03912.50
5.4.300.0030.04012.51
5.4.290.0050.03812.51
5.4.280.0040.03612.40
5.4.270.0040.03712.40
5.4.260.0080.03512.40
5.4.250.0100.03312.40
5.4.240.0060.03512.40
5.4.230.0040.03812.39
5.4.220.0080.03412.39
5.4.210.0030.03812.39
5.4.200.0050.03712.39
5.4.190.0040.03712.39
5.4.180.0060.03512.39
5.4.170.0060.03512.40
5.4.160.0040.03712.39
5.4.150.0060.03612.39
5.4.140.0040.03812.08
5.4.130.0090.03212.06
5.4.120.0060.03512.02
5.4.110.0070.03412.02
5.4.100.0070.03412.02
5.4.90.0050.03612.02
5.4.80.0070.03512.02
5.4.70.0050.03412.01
5.4.60.0050.03512.02
5.4.50.0040.03512.02
5.4.40.0040.03512.00
5.4.30.0060.03512.00
5.4.20.0080.03112.00
5.4.10.0090.03712.00
5.4.00.0040.03811.48
5.3.290.0060.04012.80
5.3.280.0030.04312.71
5.3.270.0080.03612.72
5.3.260.0060.03812.72
5.3.250.0080.03412.72
5.3.240.0040.03812.72
5.3.230.0040.03812.71
5.3.220.0040.03712.68
5.3.210.0040.04012.68
5.3.200.0030.03812.68
5.3.190.0060.03712.68
5.3.180.0040.03912.67
5.3.170.0060.04112.67
5.3.160.0060.03512.67
5.3.150.0030.03912.68
5.3.140.0090.03212.66
5.3.130.0070.03612.65
5.3.120.0050.03912.66
5.3.110.0040.04012.66
5.3.100.0060.03612.12
5.3.90.0050.04312.11
5.3.80.0050.03612.09
5.3.70.0050.03612.09
5.3.60.0050.03612.08
5.3.50.0060.03512.04
5.3.40.0030.03912.03
5.3.30.0050.03611.98
5.3.20.0080.03411.77
5.3.10.0060.03411.73
5.3.00.0060.03611.72
5.2.170.0080.0309.23
5.2.160.0050.0319.23
5.2.150.0030.0319.23
5.2.140.0060.0289.22
5.2.130.0050.0289.18
5.2.120.0070.0259.19
5.2.110.0040.0299.19
5.2.100.0030.0299.18
5.2.90.0120.0309.18
5.2.80.0060.0359.18
5.2.70.0050.0299.18
5.2.60.0060.0289.13
5.2.50.0060.0299.10
5.2.40.0070.0279.07
5.2.30.0040.0349.05
5.2.20.0050.0289.04
5.2.10.0040.0298.95
5.2.00.0070.0268.81
5.1.60.0040.0238.09
5.1.50.0060.0318.09
5.1.40.0070.0328.07
5.1.30.0030.0278.42
5.1.20.0070.0258.45
5.1.10.0070.0288.17
5.1.00.0040.0268.17
5.0.50.0020.0226.64
5.0.40.0040.0196.50
5.0.30.0030.0326.31
5.0.20.0050.0186.28
5.0.10.0040.0286.26
5.0.00.0030.0376.25
4.4.90.0030.0144.78
4.4.80.0020.0164.75
4.4.70.0050.0134.75
4.4.60.0020.0154.76
4.4.50.0010.0164.77
4.4.40.0010.0264.71
4.4.30.0010.0204.76
4.4.20.0040.0144.85
4.4.10.0010.0174.85
4.4.00.0030.0254.76
4.3.110.0060.0124.67
4.3.100.0020.0154.66
4.3.90.0030.0144.63
4.3.80.0040.0254.58
4.3.70.0040.0144.63
4.3.60.0040.0134.63
4.3.50.0060.0124.63
4.3.40.0030.0254.54
4.3.30.0020.0173.29
4.3.20.0000.0193.26
4.3.10.0030.0153.22
4.3.00.0000.0276.78

preferences:
39.17 ms | 401 KiB | 5 Q