3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { static function className(); } class A implements I { static function className() { echo "A"; } } class B implements I { static function className() { echo "A"; } } $a = new A(); $b = new B(); $a::className(); $b::className(); ?>

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.0070.00718.72
8.3.30.0070.00718.95
8.3.20.0070.00020.34
8.3.10.0040.00421.85
8.3.00.0080.00019.26
8.2.170.0120.00922.96
8.2.160.0100.00720.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.28
8.2.110.0090.00022.24
8.2.100.0060.00619.51
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0050.00317.25
8.2.60.0030.00617.80
8.2.50.0050.00318.07
8.2.40.0090.00019.82
8.2.30.0100.00017.96
8.2.20.0000.00817.64
8.2.10.0030.00517.98
8.2.00.0050.00317.70
8.1.270.0040.00423.95
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00423.84
8.1.230.0080.00319.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0040.00418.56
8.1.160.0000.00722.08
8.1.150.0030.00618.56
8.1.140.0030.00617.33
8.1.130.0040.00417.74
8.1.120.0000.00717.38
8.1.110.0030.00617.46
8.1.100.0040.00717.46
8.1.90.0070.00017.45
8.1.80.0050.00317.49
8.1.70.0070.00017.45
8.1.60.0080.00017.48
8.1.50.0030.00617.54
8.1.40.0040.00417.56
8.1.30.0000.00817.59
8.1.20.0060.00317.55
8.1.10.0000.00717.56
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0030.00617.18
8.0.280.0070.00018.36
8.0.270.0000.00716.84
8.0.260.0030.00317.18
8.0.250.0000.00716.94
8.0.240.0030.00516.95
8.0.230.0000.00716.83
8.0.220.0030.00316.87
8.0.210.0000.00716.79
8.0.200.0040.00416.86
8.0.190.0000.00916.93
8.0.180.0000.00816.95
8.0.170.0000.00816.91
8.0.160.0030.00516.89
8.0.150.0080.00016.69
8.0.140.0040.00416.84
8.0.130.0000.00513.30
8.0.120.0050.00316.78
8.0.110.0000.00716.97
8.0.100.0050.00316.77
8.0.90.0080.00016.97
8.0.80.0080.00816.84
8.0.70.0040.00416.91
8.0.60.0040.00416.89
8.0.50.0000.00716.92
8.0.30.0080.01016.99
8.0.20.0120.00617.40
8.0.10.0000.00716.91
8.0.00.0110.00816.85
7.4.330.0000.00515.09
7.4.320.0000.00716.62
7.4.300.0060.00016.59
7.4.290.0030.00316.42
7.4.280.0030.00516.59
7.4.270.0030.00316.52
7.4.260.0000.01016.43
7.4.250.0020.00516.55
7.4.240.0020.00516.58
7.4.230.0070.00016.73
7.4.220.0100.00716.58
7.4.210.0040.00916.54
7.4.200.0030.00316.51
7.4.190.0000.00716.41
7.4.160.0080.00816.55
7.4.150.0190.00017.40
7.4.140.0060.01117.86
7.4.130.0130.00716.60
7.4.120.0110.00616.54
7.4.110.0060.01516.56
7.4.100.0150.00316.63
7.4.90.0110.00616.50
7.4.80.0120.00619.39
7.4.70.0110.01116.43
7.4.60.0100.00516.53
7.4.50.0080.00016.26
7.4.40.0090.00616.42
7.4.30.0100.00716.43
7.4.00.0040.01115.09
7.3.330.0000.00713.26
7.3.320.0050.00013.32
7.3.310.0080.00016.12
7.3.300.0030.00316.32
7.3.290.0130.00716.32
7.3.280.0100.00916.32
7.3.270.0070.01017.40
7.3.260.0150.00816.27
7.3.250.0100.00616.43
7.3.240.0060.01516.31
7.3.230.0030.01416.39
7.3.210.0100.00616.33
7.3.200.0050.01519.39
7.3.190.0110.00716.39
7.3.180.0140.00716.35
7.3.170.0130.00616.27
7.3.160.0130.00316.32
7.3.120.0030.01314.86
7.2.330.0030.01516.32
7.2.320.0070.01416.71
7.2.310.0090.00916.73
7.2.300.0110.00616.22
7.2.290.0100.00716.63
7.2.00.0030.01219.61
7.1.100.0030.00818.06
7.1.70.0050.00517.14
7.1.60.0110.01119.46
7.1.50.0090.01516.86
7.1.00.0030.07722.33
7.0.200.0000.00816.55
7.0.140.0070.07021.99
7.0.60.0070.03720.07
7.0.50.0070.03717.94
7.0.40.0000.05020.24
7.0.30.0330.07720.25
7.0.20.0430.07020.21
7.0.10.0070.08720.23
7.0.00.0100.05320.06
5.6.280.0000.07721.05
5.6.210.0100.07020.67
5.6.200.0130.08018.19
5.6.190.0130.08020.41
5.6.180.0170.04020.57
5.6.170.0270.04720.55
5.6.160.0070.08720.54
5.6.150.0030.05318.15
5.6.140.0030.08018.18
5.6.130.0130.04018.15
5.6.120.0170.07321.14
5.6.110.0070.04321.02
5.6.100.0100.08321.09
5.6.90.0000.04320.95
5.6.80.0070.05720.41
5.5.350.4230.03720.43
5.5.340.0030.04018.00
5.5.330.0030.08720.20
5.5.320.0270.07720.31
5.5.310.0230.08020.56
5.5.300.0070.04717.96
5.5.290.0070.07018.01
5.5.280.0070.03720.77
5.5.270.0230.04020.68
5.5.260.0100.08020.77
5.5.250.0100.03320.79
5.5.240.0030.08020.12
5.4.450.0100.06319.17
5.4.440.0170.05319.58
5.4.430.0100.06019.46
5.4.420.0130.07719.16
5.4.410.0070.06319.03
5.4.400.0070.05719.16
5.4.390.0130.08019.15
5.4.380.0100.05018.47
5.4.370.0070.05018.80
5.4.360.0100.05318.63
5.4.350.0130.04718.75
5.4.340.0000.05718.74
5.4.320.0020.04112.50
5.4.310.0100.04912.50
5.4.300.0080.03812.50
5.4.290.0140.06112.49
5.4.280.0150.03412.39
5.4.270.0060.04412.39
5.4.260.0150.07912.39
5.4.250.0090.04212.40
5.4.240.0090.04012.39
5.4.230.0080.04012.39
5.4.220.0100.03512.38
5.4.210.0070.03812.39
5.4.200.0130.04212.38
5.4.190.0080.05312.39
5.4.180.0050.04212.38
5.4.170.0070.04012.39
5.4.160.0140.07112.39
5.4.150.0090.04212.39
5.4.140.0140.08212.07
5.4.130.0090.05012.06
5.4.120.0140.05712.02
5.4.110.0160.05812.01
5.4.100.0100.04612.01
5.4.90.0060.04212.01
5.4.80.0100.04012.01
5.4.70.0150.05312.00
5.4.60.0130.06212.00
5.4.50.0150.05712.00
5.4.40.0110.07311.99
5.4.30.0070.05411.99
5.4.20.0200.08211.99
5.4.10.0120.07411.99
5.4.00.0060.05611.48
5.3.290.0050.04712.80
5.3.280.0110.05312.71
5.3.270.0060.06112.72
5.3.260.0180.08212.72
5.3.250.0120.06712.72
5.3.240.0050.05612.72
5.3.230.0090.05612.71
5.3.220.0090.05912.68
5.3.210.0090.07012.68
5.3.200.0140.09112.68
5.3.190.0180.07712.68
5.3.180.0120.08012.67
5.3.170.0150.08912.67
5.3.160.0150.07812.67
5.3.150.0090.05512.68
5.3.140.0060.07112.66
5.3.130.0080.05912.66
5.3.120.0080.06012.66
5.3.110.0110.05112.66
5.3.100.0130.07612.12
5.3.90.0080.04312.10
5.3.80.0090.04212.10
5.3.70.0100.04112.10
5.3.60.0090.04412.08
5.3.50.0090.05812.03
5.3.40.0050.04712.03
5.3.30.0110.08611.98
5.3.20.0220.05411.76
5.3.10.0060.04911.73
5.3.00.0090.03911.73
5.2.170.0080.0389.22
5.2.160.0040.0359.23
5.2.150.0080.0329.22
5.2.140.0050.0369.22
5.2.130.0140.0569.18
5.2.120.0080.0689.18
5.2.110.0160.0689.19
5.2.100.0090.0669.19
5.2.90.0060.0489.19
5.2.80.0080.0709.18
5.2.70.0110.0459.18
5.2.60.0040.0469.13
5.2.50.0090.0409.11
5.2.40.0060.0399.08
5.2.30.0040.0459.05
5.2.20.0090.0409.04
5.2.10.0080.0508.95
5.2.00.0050.0368.82
5.1.60.0070.0318.10
5.1.50.0070.0368.10
5.1.40.0090.0448.08
5.1.30.0050.0408.43
5.1.20.0080.0428.45
5.1.10.0090.0228.17
5.1.00.0040.0288.18
5.0.50.0020.0236.66
5.0.40.0040.0216.51
5.0.30.0040.0476.32
5.0.20.0030.0306.28
5.0.10.0070.0216.27
5.0.00.0040.0316.25
4.4.90.0060.0144.78
4.4.80.0040.0174.75
4.4.70.0050.0184.76
4.4.60.0040.0164.75
4.4.50.0000.0214.77
4.4.40.0050.0284.71
4.4.30.0030.0184.76
4.4.20.0050.0174.85
4.4.10.0040.0154.84
4.4.00.0040.0244.76
4.3.110.0030.0164.67
4.3.100.0020.0164.66
4.3.90.0060.0154.64
4.3.80.0050.0304.58
4.3.70.0020.0224.63
4.3.60.0040.0204.63
4.3.50.0030.0224.63
4.3.40.0050.0304.54
4.3.30.0040.0193.29
4.3.20.0040.0203.26
4.3.10.0020.0213.22
4.3.00.0000.0308.26

preferences:
53.75 ms | 400 KiB | 5 Q