3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface common { function get($index); } interface legacy extends common {}; interface modern extends common {}; class defaultImpl implements legacy, modern { 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.60.0130.00618.55
8.3.50.0100.00921.09
8.3.40.0090.00618.68
8.3.30.0030.01020.34
8.3.20.0000.00720.20
8.3.10.0050.00322.18
8.3.00.0040.00422.50
8.2.180.0100.00716.32
8.2.170.0070.01322.96
8.2.160.0100.00320.36
8.2.150.0080.00024.18
8.2.140.0100.01024.66
8.2.130.0100.00326.16
8.2.120.0080.00019.43
8.2.110.0030.00522.23
8.2.100.0090.00317.78
8.2.90.0090.00019.17
8.2.80.0000.00719.34
8.2.70.0080.00017.63
8.2.60.0090.00017.80
8.2.50.0060.00318.07
8.2.40.0030.00518.03
8.2.30.0000.00717.99
8.2.20.0030.00617.65
8.2.10.0060.00317.54
8.2.00.0040.00417.66
8.1.280.0070.00725.92
8.1.270.0040.00420.36
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00322.13
8.1.230.0110.00019.07
8.1.220.0030.00617.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0030.00517.43
8.1.180.0030.00519.01
8.1.170.0030.00518.38
8.1.160.0000.00722.06
8.1.150.0060.00318.56
8.1.140.0040.00417.29
8.1.130.0030.00317.71
8.1.120.0040.00417.37
8.1.110.0030.00517.41
8.1.100.0030.00317.39
8.1.90.0000.00717.42
8.1.80.0000.00817.46
8.1.70.0000.00717.35
8.1.60.0000.00717.49
8.1.50.0040.00417.50
8.1.40.0040.00417.39
8.1.30.0040.00417.60
8.1.20.0040.00417.63
8.1.10.0040.00417.36
8.1.00.0040.00417.33
8.0.300.0050.00318.77
8.0.290.0000.00716.93
8.0.280.0030.00318.30
8.0.270.0030.00317.06
8.0.260.0060.00016.74
8.0.250.0030.00316.79
8.0.240.0030.00616.90
8.0.230.0070.00016.76
8.0.220.0030.00316.80
8.0.210.0000.00716.86
8.0.200.0000.00716.88
8.0.190.0050.00216.77
8.0.180.0070.00016.82
8.0.170.0040.00416.74
8.0.160.0000.00716.75
8.0.150.0000.00716.77
8.0.140.0070.00416.84
8.0.130.0030.00313.26
8.0.120.0040.00416.79
8.0.110.0040.00416.75
8.0.100.0030.00516.62
8.0.90.0080.00016.89
8.0.80.0090.00916.81
8.0.70.0000.00716.64
8.0.60.0030.00516.81
8.0.50.0000.00716.61
8.0.30.0160.00316.94
8.0.20.0130.00717.40
8.0.10.0070.00016.82
8.0.00.0080.00916.65
7.4.330.0000.00515.00
7.4.320.0030.00316.36
7.4.300.0030.00316.57
7.4.290.0030.00316.45
7.4.280.0000.00716.46
7.4.270.0050.00216.36
7.4.260.0050.00216.51
7.4.250.0030.00516.45
7.4.240.0020.00516.44
7.4.230.0040.00416.64
7.4.220.0070.01116.38
7.4.210.0100.00516.53
7.4.200.0030.00316.29
7.4.190.0000.00816.40
7.4.160.0090.00616.36
7.4.150.0160.00617.40
7.4.140.0160.00717.86
7.4.130.0150.00316.33
7.4.120.0130.00316.43
7.4.110.0110.00616.46
7.4.100.0120.00616.35
7.4.90.0100.00716.47
7.4.80.0100.01319.39
7.4.70.0100.00716.33
7.4.60.0100.01316.21
7.4.50.0000.00416.30
7.4.40.0030.01322.77
7.4.30.0110.00516.29
7.4.00.0060.00814.76
7.3.330.0000.00613.19
7.3.320.0000.00512.99
7.3.310.0060.00016.06
7.3.300.0000.00616.10
7.3.290.0070.01316.11
7.3.280.0060.00916.11
7.3.270.0170.00017.40
7.3.260.0070.01016.08
7.3.250.0080.00816.21
7.3.240.0140.00416.20
7.3.230.0060.01616.39
7.3.210.0150.00316.43
7.3.200.0130.00319.39
7.3.190.0030.01316.25
7.3.180.0060.01016.32
7.3.170.0090.01116.43
7.3.160.0030.01516.39
7.3.120.0060.00814.83
7.3.110.0060.00714.44
7.3.100.0110.00414.69
7.3.90.0090.00914.41
7.3.80.0040.00814.73
7.3.70.0070.00714.45
7.3.60.0090.00314.55
7.3.50.0060.00314.54
7.3.40.0070.00714.56
7.3.30.0030.00714.50
7.3.20.0040.01116.55
7.3.10.0040.01216.51
7.3.00.0060.00716.24
7.2.330.0130.00616.38
7.2.320.0160.00016.25
7.2.310.0100.00716.35
7.2.300.0100.00716.56
7.2.290.0070.01016.53
7.2.250.0110.00914.99
7.2.240.0100.00715.12
7.2.230.0070.01414.78
7.2.220.0070.01414.82
7.2.210.0160.00014.80
7.2.200.0060.01214.75
7.2.190.0030.01214.92
7.2.180.0040.01114.75
7.2.170.0130.00315.03
7.2.130.0030.00916.27
7.2.120.0210.00616.12
7.2.110.0130.00316.54
7.2.100.0000.00916.32
7.2.90.0000.01416.53
7.2.80.0060.00916.16
7.2.70.0220.00916.55
7.2.60.0060.00916.05
7.2.50.0110.00616.39
7.2.40.0100.00316.55
7.2.30.0030.01516.23
7.2.20.0090.01316.12
7.2.10.0140.00516.58
7.2.00.0090.00717.83
7.1.330.0110.00415.53
7.1.320.0060.01015.71
7.1.310.0070.01115.57
7.1.300.0070.00715.41
7.1.290.0000.01315.56
7.1.280.0040.00715.70
7.1.270.0030.00615.32
7.1.260.0120.00315.62
7.1.250.0030.01015.38
7.1.100.0030.01017.88
7.1.70.0000.00816.89
7.1.60.0090.01519.50
7.1.50.0060.01116.77
7.1.00.0030.07722.40
7.0.200.0070.00716.81
7.0.140.0100.06722.12
7.0.60.0100.08020.01
7.0.50.0070.05717.87
7.0.40.0100.05320.05
7.0.30.0330.07320.12
7.0.20.0300.05320.06
7.0.10.0300.07320.41
7.0.00.0170.05320.24
5.6.280.0100.06720.99
5.6.210.0170.07320.47
5.6.200.0100.04018.23
5.6.190.0070.07320.48
5.6.180.3500.04320.63
5.6.170.0400.05320.54
5.6.160.0100.08020.44
5.6.150.0030.08318.25
5.6.140.0100.07318.11
5.6.130.0030.06318.25
5.6.120.0030.06021.14
5.6.110.0070.08020.98
5.6.100.0000.08321.01
5.6.90.0100.08021.00
5.6.80.0170.07320.38
5.6.70.0170.07020.39
5.5.350.0170.03020.39
5.5.340.0070.04717.98
5.5.330.0170.07320.25
5.5.320.0200.03320.42
5.5.310.0270.08020.34
5.5.300.0130.07317.93
5.5.290.0030.09018.09
5.5.280.0030.06320.65
5.5.270.0030.05320.79
5.5.260.0070.04720.68
5.5.250.0100.07320.71
5.5.240.0100.07720.27
5.4.450.0230.05719.48
5.4.440.0170.06019.63
5.4.430.0200.06019.57
5.4.420.0170.06319.69
5.4.410.0170.05719.50
5.4.400.0370.06718.76
5.4.390.0400.06318.79
5.4.380.0300.05318.72
5.4.370.0100.05318.84
5.4.360.0070.05718.69
5.4.350.0100.03712.02
5.4.340.0120.04712.02
5.4.320.0080.04212.50
5.4.310.0040.04412.50
5.4.300.0060.04212.50
5.4.290.0030.04012.50
5.4.280.0050.03512.39
5.4.270.0050.04112.40
5.4.260.0090.03912.39
5.4.250.0230.06018.95
5.4.240.0130.04719.07
5.4.230.0100.05018.95
5.4.220.0070.05318.76
5.4.210.0100.05018.94
5.4.200.0070.07018.71
5.4.190.0030.05718.80
5.4.180.0130.04718.93
5.4.170.0100.05018.87
5.4.160.0130.04719.01
5.4.150.0000.06018.98
5.4.140.0100.04716.44
5.4.130.0030.06316.43
5.4.120.0070.05716.56
5.4.110.0030.08016.37
5.4.100.0100.06716.53
5.4.90.0000.05716.46
5.4.80.0070.05316.52
5.4.70.0170.05716.39
5.4.60.0130.07316.60
5.4.50.0070.04716.38
5.4.40.0100.04716.38
5.4.30.0170.04016.59
5.4.20.0100.04716.48
5.4.10.0170.04316.34
5.4.00.0030.05315.87
5.3.290.0110.04012.80
5.3.280.0200.04014.50
5.3.270.0100.05014.70
5.3.260.0030.05714.78
5.3.250.0100.04714.67
5.3.240.0070.05714.59
5.3.230.0200.06014.60
5.3.220.0170.05314.47
5.3.210.0000.06014.60
5.3.200.0000.06014.79
5.3.190.0130.05314.65
5.3.180.0000.08014.79
5.3.170.0130.06314.65
5.3.160.0130.06314.79
5.3.150.0130.04314.55
5.3.140.0130.04314.74
5.3.130.0100.05314.63
5.3.120.0000.06014.38
5.3.110.0030.05314.63
5.3.100.0100.07014.18
5.3.90.0070.05014.08
5.3.80.0100.04313.85
5.3.70.0000.05714.18
5.3.60.0000.05714.09
5.3.50.0200.05714.05
5.3.40.0000.05313.95
5.3.30.0070.04713.99
5.3.20.0030.05313.92
5.3.10.0000.07013.74
5.3.00.0030.05013.63
5.2.170.0100.03711.33
5.2.160.0030.04010.98
5.2.150.0030.04011.15
5.2.140.0070.03711.32
5.2.130.0100.04011.19
5.2.120.0000.04711.17
5.2.110.0030.04010.94
5.2.100.0030.04010.93
5.2.90.0030.04010.93
5.2.80.0070.03711.08
5.2.70.0070.05711.25
5.2.60.0030.04311.21
5.2.50.0070.03710.98
5.2.40.0030.04010.97
5.2.30.0070.04310.93
5.2.20.0070.03710.94
5.2.10.0070.03710.96
5.2.00.0030.04010.71
5.1.60.0100.0279.84
5.1.50.0030.03310.22
5.1.40.0030.0379.90
5.1.30.0130.02710.41
5.1.20.0000.04010.34
5.1.10.0030.03710.04
5.1.00.0000.04310.11
5.0.50.0100.0308.50
5.0.40.0100.0208.38
5.0.30.0070.0378.42
5.0.20.0100.0208.29
5.0.10.0070.0238.14
5.0.00.0070.0378.08
4.4.90.0070.0177.32
4.4.80.0000.0237.32
4.4.70.0030.0207.32
4.4.60.0030.0207.32
4.4.50.0030.0207.32
4.4.40.0030.0337.32
4.4.30.0000.0337.32
4.4.20.0030.0207.32
4.4.10.0000.0307.32
4.4.00.0070.0307.32
4.3.110.0030.0207.32
4.3.100.0100.0237.32
4.3.90.0070.0277.32
4.3.80.0000.0377.32
4.3.70.0130.0177.32
4.3.60.0030.0207.32
4.3.50.0030.0307.32
4.3.40.0100.0377.32
4.3.30.0000.0307.32
4.3.20.0070.0177.32
4.3.10.0070.0237.32
4.3.00.0000.0276.79

preferences:
45.94 ms | 401 KiB | 5 Q