3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B extends A { } interface C { function foo(A $a); } class D implements C { public function foo(B $b) { } }

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.0030.01216.63
8.3.50.0130.00822.77
8.3.40.0060.01518.71
8.3.30.0070.00718.84
8.3.20.0040.00420.20
8.3.10.0040.00423.52
8.3.00.0000.00819.25
8.2.180.0060.01016.63
8.2.170.0080.00622.96
8.2.160.0120.00620.49
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00021.04
8.2.110.0050.00320.35
8.2.100.0040.00718.03
8.2.90.0060.00319.26
8.2.80.0080.00017.97
8.2.70.0040.00717.50
8.2.60.0030.00617.92
8.2.50.0000.00918.07
8.2.40.0040.00419.95
8.2.30.0070.00019.31
8.2.20.0000.00717.67
8.2.10.0050.00217.89
8.2.00.0040.00417.62
8.1.280.0100.01025.92
8.1.270.0120.00323.84
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00723.91
8.1.230.0110.00019.08
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.01017.10
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0080.00018.50
8.1.160.0040.00421.96
8.1.150.0040.00418.88
8.1.140.0000.00717.34
8.1.130.0000.00717.70
8.1.120.0040.00417.30
8.1.110.0040.00417.37
8.1.100.0050.00217.36
8.1.90.0030.00317.29
8.1.80.0070.00017.35
8.1.70.0070.00017.34
8.1.60.0060.00317.53
8.1.50.0060.00317.37
8.1.40.0070.00017.32
8.1.30.0040.00417.60
8.1.20.0000.00717.53
8.1.10.0080.00017.44
8.1.00.0000.00717.17
8.0.300.0020.00518.77
8.0.290.0070.00016.75
8.0.280.0050.00518.35
8.0.270.0050.00316.82
8.0.260.0060.00017.11
8.0.250.0030.00516.92
8.0.240.0000.00716.82
8.0.230.0070.00016.92
8.0.220.0050.00516.86
8.0.210.0000.00716.92
8.0.200.0060.00016.93
8.0.190.0040.00416.94
8.0.180.0040.00416.93
8.0.170.0090.00016.93
8.0.160.0000.00716.91
8.0.150.0000.00716.72
8.0.140.0040.00416.81
8.0.130.0000.00513.36
8.0.120.0080.00016.89
8.0.110.0030.00316.84
8.0.100.0000.00816.94
8.0.90.0030.00516.86
8.0.80.0000.02016.88
8.0.70.0000.00816.87
8.0.60.0030.00516.70
8.0.50.0040.00416.94
8.0.30.0100.00817.15
8.0.20.0100.01017.40
8.0.10.0000.00716.99
8.0.00.0100.00716.78
7.4.330.0040.00415.00
7.4.320.0040.00416.39
7.4.300.0030.00316.41
7.4.290.0030.00316.43
7.4.280.0040.00416.46
7.4.270.0030.00316.47
7.4.260.0000.00616.52
7.4.250.0050.00216.32
7.4.240.0070.00016.45
7.4.230.0040.00416.50
7.4.220.0170.00816.48
7.4.210.0040.01116.55
7.4.200.0070.00016.27
7.4.160.0090.01216.46
7.4.150.0070.01017.40
7.4.140.0140.00317.86
7.4.130.0110.00716.40
7.4.120.0060.01116.56
7.4.110.0100.00716.45
7.4.100.0120.00616.53
7.4.90.0090.00916.35
7.4.80.0100.00719.39
7.4.70.0050.01116.52
7.4.60.0080.01516.30
7.4.50.0030.00516.68
7.4.40.0100.00716.41
7.4.30.0090.00616.45
7.4.00.0080.00615.06
7.3.330.0060.00013.02
7.3.320.0020.00313.16
7.3.310.0030.00316.35
7.3.300.0060.00016.21
7.3.290.0120.00416.33
7.3.280.0070.01116.23
7.3.270.0160.00017.40
7.3.260.0090.01216.39
7.3.250.0110.00916.24
7.3.240.0040.01216.41
7.3.230.0120.00316.52
7.3.210.0040.01116.16
7.3.200.0060.01119.39
7.3.190.0030.01916.31
7.3.180.0120.00416.31
7.3.170.0070.00916.27
7.3.160.0100.00616.40
7.2.330.0100.00716.46
7.2.320.0070.01116.53
7.2.310.0140.01016.42
7.2.300.0130.00316.42
7.2.290.0030.01816.45
7.2.80.0060.00616.11
7.2.60.0030.00916.67
7.2.00.0060.01018.83
7.1.200.0000.01115.27
7.1.100.0030.01018.10
7.1.70.0030.01317.18
7.1.60.0030.02019.46
7.1.50.0080.00416.89
7.1.00.0070.07322.36
7.0.200.0040.00416.64
7.0.140.0000.07321.94
7.0.60.0070.08319.82
7.0.50.0100.08017.84
7.0.40.0130.07720.24
7.0.30.0530.07320.21
7.0.20.0200.05320.22
7.0.10.0100.03720.07
7.0.00.0070.05320.14
5.6.280.0130.06021.16
5.6.210.0130.07320.68
5.6.200.0000.04318.12
5.6.190.0000.04320.33
5.6.180.0430.03020.63
5.6.170.0300.05720.71
5.6.160.0070.06320.50
5.6.150.0030.06318.15
5.6.140.0100.03318.28
5.6.130.0070.04718.23
5.6.120.0070.04020.81
5.6.110.0130.08320.94
5.6.100.0130.08021.01
5.6.90.0030.05020.98
5.6.80.0070.07720.53
5.5.350.0230.07320.45
5.5.340.0030.03717.95
5.5.330.0070.04020.40
5.5.320.0200.04720.47
5.5.310.0130.04320.36
5.5.300.0030.07318.03
5.5.290.0070.08017.96
5.5.280.0070.06720.80
5.5.270.0070.08320.95
5.5.260.0100.06320.88
5.5.250.0100.06720.59
5.5.240.3900.03720.26
5.4.450.0100.06019.20
5.4.440.0270.05019.30
5.4.430.0430.04719.55
5.4.420.0230.05319.63
5.4.410.0230.03719.19
5.4.400.0130.03319.25
5.4.390.0230.04319.00
5.4.380.0400.07318.78
5.4.370.0370.05718.52
5.4.360.0300.05018.53
5.4.350.0630.03718.60
5.4.340.0470.04318.75
5.4.320.0030.03812.51
5.4.310.0080.04712.51
5.4.300.0080.04112.51
5.4.290.0050.03812.50
5.4.280.0100.03612.40
5.4.270.0090.04212.40
5.4.260.0070.04512.40
5.4.250.0090.03512.39
5.4.240.0060.03712.39
5.4.230.0070.03812.39
5.4.220.0100.03212.39
5.4.210.0050.03712.39
5.4.200.0050.04112.39
5.4.190.0070.03512.39
5.4.180.0050.03712.39
5.4.170.0070.03812.40
5.4.160.0070.03412.39
5.4.150.0070.03412.39
5.4.140.0080.05212.07
5.4.130.0080.05212.07
5.4.120.0040.03712.02
5.4.110.0050.03612.01
5.4.100.0070.03412.01
5.4.90.0040.04512.02
5.4.80.0050.04012.02
5.4.70.0060.03412.01
5.4.60.0050.03512.02
5.4.50.0090.03512.01
5.4.40.0080.03312.00
5.4.30.0050.03611.99
5.4.20.0070.03512.00
5.4.10.0060.03312.00
5.4.00.0050.03611.49
5.3.290.0040.04112.80
5.3.280.0040.03912.71
5.3.270.0090.03612.72
5.3.260.0020.04212.72
5.3.250.0070.03612.72
5.3.240.0080.04112.71
5.3.230.0100.03812.71
5.3.220.0070.03612.68
5.3.210.0070.04012.68
5.3.200.0090.03312.68
5.3.190.0050.03912.68
5.3.180.0070.04612.67
5.3.170.0070.04312.67
5.3.160.0090.04312.68
5.3.150.0060.03712.67
5.3.140.0070.03912.66
5.3.130.0050.04012.66
5.3.120.0070.03812.66
5.3.110.0060.03912.66
5.3.100.0050.04212.13
5.3.90.0090.03812.11
5.3.80.0080.03512.10
5.3.70.0080.03512.10
5.3.60.0050.04312.09
5.3.50.0030.04012.04
5.3.40.0080.03412.04
5.3.30.0060.03511.99
5.3.20.0070.03911.77
5.3.10.0030.03811.74
5.3.00.0050.03711.72
5.2.170.0030.0329.23
5.2.160.0040.0309.23
5.2.150.0080.0319.23
5.2.140.0030.0369.23
5.2.130.0060.0309.18
5.2.120.0030.0309.18
5.2.110.0030.0319.19
5.2.100.0020.0319.18
5.2.90.0090.0259.18
5.2.80.0050.0329.18
5.2.70.0120.0369.18
5.2.60.0070.0289.13
5.2.50.0060.0299.10
5.2.40.0060.0279.08
5.2.30.0040.0319.05
5.2.20.0030.0309.04
5.2.10.0040.0298.95
5.2.00.0070.0278.80
5.1.60.0060.0228.10
5.1.50.0090.0268.09
5.1.40.0060.0238.07
5.1.30.0030.0278.42
5.1.20.0040.0308.44
5.1.10.0080.0238.17
5.1.00.0060.0248.17
5.0.50.0040.0226.64
5.0.40.0030.0236.51
5.0.30.0030.0326.32
5.0.20.0080.0186.29
5.0.10.0040.0206.27
5.0.00.0050.0306.26
4.4.90.0040.0164.78
4.4.80.0040.0144.76
4.4.70.0030.0154.76
4.4.60.0020.0174.75
4.4.50.0050.0144.77
4.4.40.0040.0254.71
4.4.30.0060.0164.75
4.4.20.0050.0144.84
4.4.10.0030.0164.84
4.4.00.0020.0264.76
4.3.110.0040.0174.67
4.3.100.0020.0174.66
4.3.90.0050.0164.64
4.3.80.0040.0234.58
4.3.70.0030.0154.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0030.0264.54
4.3.30.0050.0203.29
4.3.20.0010.0173.27
4.3.10.0010.0173.24
4.3.00.0100.01718.56

preferences:
114.65 ms | 401 KiB | 5 Q