3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { const D = 12; public static function test(array $a); } class B implements A { const D = 15; public static function test(array $a){ return self::D; } } var_dump(B::test(array()), A::D, B::D);

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.01018.55
8.3.50.0270.00721.94
8.3.40.0070.00718.77
8.3.30.0110.00419.16
8.3.20.0080.00020.16
8.3.10.0080.00020.24
8.3.00.0060.00319.56
8.2.180.0140.00718.00
8.2.170.0030.01422.96
8.2.160.0070.00720.11
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.18
8.2.110.0040.00422.08
8.2.100.0070.00717.72
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0040.00417.48
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0040.00417.84
8.2.30.0070.00019.30
8.2.20.0040.00417.75
8.2.10.0000.01018.05
8.2.00.0000.00717.60
8.1.280.0040.01125.92
8.1.270.0060.00322.19
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.00924.02
8.1.230.0070.00719.16
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0050.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00618.56
8.1.160.0040.00421.91
8.1.150.0030.00718.80
8.1.140.0000.00717.30
8.1.130.0030.00317.75
8.1.120.0000.00717.38
8.1.110.0050.00317.33
8.1.100.0040.00417.28
8.1.90.0000.00717.43
8.1.80.0000.00717.42
8.1.70.0030.00317.31
8.1.60.0050.00517.50
8.1.50.0060.00317.49
8.1.40.0060.00317.49
8.1.30.0030.00517.56
8.1.20.0080.00017.49
8.1.10.0050.00217.31
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.41
8.0.270.0040.00417.19
8.0.260.0030.00317.25
8.0.250.0030.00316.91
8.0.240.0030.00316.90
8.0.230.0040.00417.01
8.0.220.0000.00716.84
8.0.210.0070.00016.93
8.0.200.0000.00716.93
8.0.190.0040.00416.90
8.0.180.0000.00716.98
8.0.170.0040.00416.86
8.0.160.0040.00416.86
8.0.150.0080.00016.84
8.0.140.0040.00416.74
8.0.130.0060.00013.29
8.0.120.0040.00416.81
8.0.110.0040.00416.93
8.0.100.0040.00416.84
8.0.90.0030.00516.77
8.0.80.0110.01216.84
8.0.70.0000.00816.79
8.0.60.0000.00716.85
8.0.50.0000.00716.78
8.0.30.0140.00516.99
8.0.20.0100.01117.40
8.0.10.0000.00817.00
8.0.00.0050.01616.79
7.4.330.0000.00515.00
7.4.320.0060.00016.36
7.4.300.0030.00316.52
7.4.290.0070.00016.44
7.4.280.0000.00816.43
7.4.270.0000.00616.58
7.4.260.0040.00416.37
7.4.250.0000.00816.48
7.4.240.0040.00416.48
7.4.230.0000.00716.51
7.4.220.0110.00816.48
7.4.210.0060.01316.47
7.4.200.0080.00016.37
7.4.160.0140.00316.48
7.4.150.0060.01317.40
7.4.140.0120.00817.86
7.4.130.0080.01116.39
7.4.120.0080.00916.49
7.4.110.0070.01016.25
7.4.100.0140.00416.66
7.4.90.0070.01016.23
7.4.80.0100.00716.45
7.4.70.0130.00316.45
7.4.60.0040.01416.43
7.4.50.0000.00416.50
7.4.40.0130.01016.62
7.4.30.0110.00616.41
7.4.00.0110.00415.12
7.3.330.0000.00613.11
7.3.320.0030.00313.22
7.3.310.0030.00316.29
7.3.300.0030.00316.02
7.3.290.0110.00716.29
7.3.280.0080.00916.24
7.3.270.0060.01617.40
7.3.260.0090.00916.49
7.3.250.0100.01216.31
7.3.240.0030.01616.45
7.3.230.0050.01116.48
7.3.210.0100.00716.32
7.3.200.0100.01319.39
7.3.190.0040.01416.36
7.3.180.0120.01016.24
7.3.170.0120.00416.38
7.3.160.0090.01316.40
7.3.10.0070.00716.57
7.3.00.0090.00616.34
7.2.330.0030.01416.51
7.2.320.0070.01016.71
7.2.310.0120.00916.44
7.2.300.0100.00716.44
7.2.290.0120.00616.26
7.2.130.0030.00616.95
7.2.120.0040.00416.69
7.2.110.0090.00916.81
7.2.100.0060.00316.71
7.2.90.0100.00716.92
7.2.80.0060.01016.97
7.2.70.0060.00616.61
7.2.60.0100.00716.66
7.2.50.0060.00916.91
7.2.40.0040.00416.86
7.2.30.0040.00716.84
7.2.20.0040.00816.78
7.2.10.0000.01016.54
7.2.00.0060.00618.01
7.1.250.0000.01015.39
7.1.100.0070.00418.20
7.1.70.0040.01516.75
7.1.60.0140.00719.32
7.1.50.0100.01016.89
7.1.00.0070.07322.40
7.0.200.0000.01016.50
7.0.140.0170.06022.09
7.0.60.0070.03719.91
7.0.50.0100.07717.86
7.0.40.0070.09020.05
7.0.30.0570.07020.34
7.0.20.0300.07720.08
7.0.10.0400.04320.19
7.0.00.0030.05320.31
5.6.280.0000.07721.11
5.6.210.0100.08020.70
5.6.200.0100.05318.28
5.6.190.0100.08320.28
5.6.180.0230.07720.48
5.6.170.0330.07020.50
5.6.160.0070.05320.46
5.6.150.0000.04018.18
5.6.140.0100.07718.17
5.6.130.0070.06018.18
5.6.120.0130.07720.97
5.6.110.0100.04321.13
5.6.100.0130.06321.09
5.6.90.0000.05721.01
5.6.80.0100.07020.39
5.6.70.4470.03720.39
5.5.350.0130.06720.41
5.5.340.0000.04018.06
5.5.330.0070.04020.31
5.5.320.0330.04320.31
5.5.310.0270.05020.32
5.5.300.0130.07318.06
5.5.290.0070.03718.03
5.5.280.0030.04020.77
5.5.270.0130.03720.87
5.5.260.0070.04320.96
5.5.250.0030.07720.71
5.5.240.0330.06320.19
5.4.450.0430.04719.55
5.4.440.0800.05319.61
5.4.430.0800.05719.41
5.4.420.0900.06019.19
5.4.410.0830.06319.21
5.4.400.0430.05319.26
5.4.390.1100.05019.29
5.4.380.0330.08318.47
5.4.370.0330.05318.59
5.4.360.0400.06018.75
5.4.350.0300.06318.47
5.4.340.0230.06018.59
5.4.320.0060.04312.50
5.4.310.0050.04012.50
5.4.300.0110.03412.50
5.4.290.0070.03812.50
5.4.280.0040.03912.39
5.4.270.0070.03412.39
5.4.260.0050.04012.39
5.4.250.0090.05212.39
5.4.240.0080.04812.39
5.4.230.0070.05112.39
5.4.220.0110.04512.39
5.4.210.0070.03612.39
5.4.200.0090.04912.39
5.4.190.0110.04612.38
5.4.180.0090.04812.39
5.4.170.0050.05112.39
5.4.160.0040.03812.39
5.4.150.0080.03412.39
5.4.140.0060.03812.07
5.4.130.0060.03512.05
5.4.120.0080.03312.02
5.4.110.0110.03312.02
5.4.100.0080.03212.01
5.4.90.0030.03912.02
5.4.80.0060.03612.01
5.4.70.0060.03412.01
5.4.60.0060.03412.01
5.4.50.0070.03312.01
5.4.40.0050.03612.00
5.4.30.0050.03711.99
5.4.20.0040.03611.99
5.4.10.0090.03811.99
5.4.00.0070.04911.48
5.3.290.0070.03812.80
5.3.280.0070.03612.71
5.3.270.0050.03912.72
5.3.260.0100.03512.71
5.3.250.0050.03812.71
5.3.240.0040.03912.71
5.3.230.0060.03812.70
5.3.220.0050.03812.68
5.3.210.0070.03912.68
5.3.200.0080.03612.68
5.3.190.0050.03912.68
5.3.180.0040.03712.67
5.3.170.0040.03912.67
5.3.160.0070.03512.67
5.3.150.0040.04012.67
5.3.140.0040.03812.66
5.3.130.0020.04312.66
5.3.120.0070.03712.66
5.3.110.0050.03912.66
5.3.100.0060.03712.13
5.3.90.0060.03612.11
5.3.80.0040.03812.09
5.3.70.0070.03512.09
5.3.60.0040.03912.09
5.3.50.0060.03612.04
5.3.40.0070.03512.03
5.3.30.0080.03911.99
5.3.20.0050.03911.77
5.3.10.0080.03411.74
5.3.00.0080.03411.73
5.2.170.0050.0309.23
5.2.160.0050.0439.23
5.2.150.0050.0309.23
5.2.140.0070.0289.23
5.2.130.0040.0299.18
5.2.120.0040.0289.18
5.2.110.0020.0319.19
5.2.100.0040.0299.19
5.2.90.0090.0359.19
5.2.80.0040.0349.18
5.2.70.0070.0359.18
5.2.60.0070.0359.13
5.2.50.0060.0299.09
5.2.40.0060.0299.07
5.2.30.0080.0289.05
5.2.20.0080.0269.04
5.2.10.0030.0298.95
5.2.00.0050.0288.81
5.1.60.0040.0268.10
5.1.50.0020.0268.09
5.1.40.0050.0248.07
5.1.30.0060.0248.42
5.1.20.0040.0278.45
5.1.10.0010.0298.17
5.1.00.0030.0268.16
5.0.50.0030.0216.64
5.0.40.0040.0186.50
5.0.30.0010.0336.31
5.0.20.0020.0206.28
5.0.10.0040.0226.26
5.0.00.0060.0326.25
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0030.0154.76
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0164.76
4.4.20.0000.0184.85
4.4.10.0020.0164.85
4.4.00.0020.0264.75
4.3.110.0040.0154.67
4.3.100.0040.0194.66
4.3.90.0050.0124.63
4.3.80.0040.0254.59
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0050.0224.54
4.3.30.0010.0173.29
4.3.20.0000.0183.26
4.3.10.0020.0163.22
4.3.00.0000.0236.78

preferences:
36.92 ms | 401 KiB | 5 Q