3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface common { function get($index); } interface legacy extends common {}; interface modern extends common {}; class modernImpl implements modern { public function get($index) {} } class defaultImpl extends modernImpl implements legacy { public function get($index) {} }

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.63
8.3.30.0040.01120.26
8.3.20.0070.00020.04
8.3.10.0000.00722.15
8.3.00.0080.00022.40
8.2.170.0130.00622.96
8.2.160.0030.01020.52
8.2.150.0060.00324.18
8.2.140.0030.01724.66
8.2.130.0040.00426.16
8.2.120.0050.00319.77
8.2.110.0080.00020.52
8.2.100.0090.00317.91
8.2.90.0000.00719.04
8.2.80.0000.00919.35
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00418.22
8.2.30.0050.00217.95
8.2.20.0050.00217.59
8.2.10.0040.00417.49
8.2.00.0000.00717.52
8.1.270.0090.00020.32
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.18
8.1.230.0110.00022.06
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0150.00017.25
8.1.190.0050.00317.53
8.1.180.0060.00319.01
8.1.170.0080.00018.45
8.1.160.0040.00422.13
8.1.150.0080.00018.63
8.1.140.0070.00017.34
8.1.130.0040.00417.72
8.1.120.0070.00017.35
8.1.110.0080.00017.39
8.1.100.0000.00717.36
8.1.90.0000.00717.41
8.1.80.0030.00417.38
8.1.70.0000.00717.38
8.1.60.0040.00417.52
8.1.50.0070.00017.50
8.1.40.0000.00717.30
8.1.30.0040.00417.56
8.1.20.0030.00617.59
8.1.10.0050.00217.29
8.1.00.0040.00417.23
8.0.300.0070.00018.77
8.0.290.0000.00817.16
8.0.280.0030.00318.42
8.0.270.0040.00417.24
8.0.260.0030.00516.67
8.0.250.0030.00316.90
8.0.240.0040.00416.85
8.0.230.0030.00316.90
8.0.220.0000.00716.86
8.0.210.0050.00216.85
8.0.200.0030.00316.80
8.0.190.0000.00816.82
8.0.180.0030.00316.74
8.0.170.0070.00016.74
8.0.160.0030.00516.88
8.0.150.0040.00416.64
8.0.140.0110.00016.66
8.0.130.0030.00313.21
8.0.120.0040.00416.84
8.0.110.0040.00416.73
8.0.100.0040.00416.72
8.0.90.0020.00516.61
8.0.80.0130.00316.84
8.0.70.0040.00416.82
8.0.60.0070.00016.69
8.0.50.0000.00716.70
8.0.30.0080.01116.97
8.0.20.0120.00617.40
8.0.10.0050.00216.98
8.0.00.0070.01016.82
7.4.330.0000.00515.00
7.4.320.0000.00716.53
7.4.300.0030.00316.53
7.4.290.0030.00316.43
7.4.280.0000.00616.42
7.4.270.0030.00316.52
7.4.260.0030.00316.34
7.4.250.0040.00416.50
7.4.240.0050.00216.49
7.4.230.0000.00716.23
7.4.220.0100.01616.56
7.4.210.0090.00916.46
7.4.200.0040.00416.47
7.4.190.0040.00416.43
7.4.160.0130.01016.40
7.4.150.0080.00917.40
7.4.140.0100.01017.86
7.4.130.0100.00716.43
7.4.120.0100.00716.59
7.4.110.0070.01016.41
7.4.100.0110.00616.43
7.4.90.0070.01416.42
7.4.80.0190.00619.39
7.4.70.0080.00816.62
7.4.60.0060.01716.24
7.4.50.0030.00616.20
7.4.40.0040.00722.77
7.4.30.0160.00016.30
7.4.00.0080.00614.95
7.3.330.0000.00613.15
7.3.320.0020.00213.05
7.3.310.0040.00416.41
7.3.300.0040.00416.31
7.3.290.0120.00316.23
7.3.280.0070.00816.23
7.3.270.0060.01017.40
7.3.260.0100.00616.26
7.3.250.0080.00916.51
7.3.240.0100.00716.32
7.3.230.0130.00316.39
7.3.210.0160.00316.47
7.3.200.0100.00719.39
7.3.190.0070.01616.36
7.3.180.0090.00616.21
7.3.170.0060.01016.48
7.3.160.0120.00916.59
7.3.120.0000.01414.95
7.2.330.0110.00716.66
7.2.320.0070.01016.29
7.2.310.0080.00816.50
7.2.300.0040.01816.59
7.2.290.0110.00716.41
7.1.70.0110.00316.90
7.1.60.0030.02019.50
7.1.50.0040.01916.86
7.1.00.0030.03722.37
7.0.200.0050.00316.73
7.0.140.0070.06721.96
7.0.60.0170.08020.04
7.0.50.0030.05317.85
7.0.40.0030.04319.96
7.0.30.0370.05020.30
7.0.20.0130.08320.14
7.0.10.0130.07720.23
7.0.00.0070.07020.23
5.6.280.0000.07721.16
5.6.210.0070.06320.47
5.6.200.0100.03718.18
5.6.190.0070.07020.57
5.6.180.0270.07720.28
5.6.170.0430.04020.55
5.6.160.0070.08320.54
5.6.150.0130.05718.19
5.6.140.0070.03718.17
5.6.130.0100.08018.17
5.6.120.0100.06720.92
5.6.110.0100.03721.00
5.6.100.0100.08021.01
5.6.90.0100.05720.97
5.6.80.0030.07720.51
5.6.70.3830.04020.39
5.5.350.0070.06720.50
5.5.340.0130.05018.02
5.5.330.0070.05720.27
5.5.320.0230.08320.35
5.5.310.0200.09320.31
5.5.300.0100.07318.05
5.5.290.0100.06017.92
5.5.280.0000.06320.88
5.5.270.0130.04720.89
5.5.260.0070.08020.68
5.5.250.0070.07720.66
5.5.240.0100.04320.19
5.4.450.0200.05319.61
5.4.440.0030.07019.32
5.4.430.0200.07719.57
5.4.420.0170.05719.70
5.4.410.0100.06019.03
5.4.400.0400.07718.76
5.4.390.0170.06018.84
5.4.380.0270.05718.57
5.4.370.0030.06018.78
5.4.360.0030.06018.47
5.4.350.0030.03712.03
5.4.340.0070.03612.02
5.4.320.0060.04112.51
5.4.310.0060.04112.51
5.4.300.0060.05212.51
5.4.290.0080.03712.50
5.4.280.0110.04012.39
5.4.270.0050.03812.40
5.4.260.0070.03912.40
5.4.250.0070.05319.09
5.4.240.0100.05318.77
5.4.230.0170.06319.02
5.4.220.0070.05718.97
5.4.210.0100.05018.84
5.4.200.0130.04318.95
5.4.190.0070.05318.99
5.4.180.0070.05318.93
5.4.170.0170.04319.01
5.4.160.0030.05318.63
5.4.150.0070.05318.97
5.4.140.0100.04316.64
5.4.130.0070.04716.44
5.4.120.0100.04316.60
5.4.110.0070.04716.56
5.4.100.0130.05016.52
5.4.90.0100.04716.54
5.4.80.0030.05016.42
5.4.70.0130.05716.44
5.4.60.0000.05316.47
5.4.50.0070.04716.38
5.4.40.0070.05316.43
5.4.30.0100.04316.44
5.4.20.0070.07016.35
5.4.10.0070.07016.59
5.4.00.0030.06015.95
5.3.290.0090.04712.80
5.3.280.0070.05314.56
5.3.270.0070.05314.43
5.3.260.0100.04714.82
5.3.250.0070.05314.67
5.3.240.0130.04714.70
5.3.230.0100.04714.60
5.3.220.0030.05314.65
5.3.210.0030.05314.55
5.3.200.0030.05014.73
5.3.190.0100.04714.73
5.3.180.0030.05014.75
5.3.170.0070.05014.55
5.3.160.0170.04014.64
5.3.150.0200.05314.64
5.3.140.0100.07014.55
5.3.130.0170.04714.55
5.3.120.0070.05014.68
5.3.110.0070.05314.68
5.3.100.0070.06314.02
5.3.90.0170.05713.98
5.3.80.0070.05714.09
5.3.70.0130.05013.92
5.3.60.0100.05313.91
5.3.50.0030.07314.05
5.3.40.0030.05313.86
5.3.30.0130.05013.74
5.3.20.0100.04313.79
5.3.10.0030.05013.74
5.3.00.0100.05013.73
5.2.170.0030.04711.05
5.2.160.0100.03711.21
5.2.150.0030.04311.13
5.2.140.0000.04711.31
5.2.130.0000.04311.28
5.2.120.0030.04011.01
5.2.110.0130.03311.27
5.2.100.0070.04011.07
5.2.90.0070.03711.17
5.2.80.0030.04310.93
5.2.70.0130.04011.18
5.2.60.0100.03711.27
5.2.50.0030.04311.11
5.2.40.0100.03310.98
5.2.30.0000.05710.97
5.2.20.0070.03711.03
5.2.10.0100.04310.95
5.2.00.0100.04010.55
5.1.60.0030.03310.24
5.1.50.0070.0309.98
5.1.40.0000.03710.09
5.1.30.0000.04310.23
5.1.20.0030.03710.58
5.1.10.0100.03010.13
5.1.00.0000.04010.04
5.0.50.0000.0308.64
5.0.40.0030.0278.39
5.0.30.0030.0408.18
5.0.20.0000.0278.20
5.0.10.0070.0238.15
5.0.00.0000.0438.16
4.4.90.0070.0177.37
4.4.80.0100.0237.37
4.4.70.0070.0177.37
4.4.60.0030.0237.37
4.4.50.0030.0207.37
4.4.40.0070.0337.37
4.4.30.0030.0277.37
4.4.20.0000.0237.37
4.4.10.0030.0207.37
4.4.00.0070.0377.36
4.3.110.0030.0207.36
4.3.100.0000.0237.36
4.3.90.0030.0207.36
4.3.80.0070.0277.36
4.3.70.0100.0137.36
4.3.60.0070.0237.36
4.3.50.0130.0207.36
4.3.40.0070.0377.37
4.3.30.0030.0207.37
4.3.20.0000.0237.37
4.3.10.0070.0177.37
4.3.00.0000.0236.79

preferences:
38.9 ms | 400 KiB | 5 Q