3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B extends A { } interface I { public function f(B $x); } class C implements I { public function f(A $x) { } }

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.01316.63
8.3.50.0160.00722.05
8.3.40.0170.00318.68
8.3.30.0140.00018.74
8.3.20.0080.00020.20
8.3.10.0040.00423.56
8.3.00.0050.00319.56
8.2.180.0090.00616.63
8.2.170.0100.00722.96
8.2.160.0030.01020.55
8.2.150.0080.00024.18
8.2.140.0180.00024.66
8.2.130.0000.00726.16
8.2.120.0070.00021.04
8.2.110.0060.00322.12
8.2.100.0000.01218.03
8.2.90.0030.00519.15
8.2.80.0040.00417.97
8.2.70.0040.00417.48
8.2.60.0030.00517.90
8.2.50.0000.00918.07
8.2.40.0040.00418.09
8.2.30.0100.00018.16
8.2.20.0040.00417.52
8.2.10.0060.00318.06
8.2.00.0090.00017.48
8.1.280.0110.00425.92
8.1.270.0060.00323.90
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00322.18
8.1.230.0000.01119.21
8.1.220.0030.00617.74
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00421.94
8.1.150.0040.00418.79
8.1.140.0040.00417.30
8.1.130.0050.00317.75
8.1.120.0030.00617.28
8.1.110.0040.00417.29
8.1.100.0060.00317.36
8.1.90.0060.00317.46
8.1.80.0030.00317.36
8.1.70.0040.00417.34
8.1.60.0050.00317.51
8.1.50.0090.00017.46
8.1.40.0000.00817.41
8.1.30.0000.00817.54
8.1.20.0000.00717.45
8.1.10.0040.00417.31
8.1.00.0070.00317.27
8.0.300.0040.00418.77
8.0.290.0030.00316.75
8.0.280.0040.00418.33
8.0.270.0070.00017.06
8.0.260.0000.00617.18
8.0.250.0090.00016.89
8.0.240.0000.00816.92
8.0.230.0040.00416.89
8.0.220.0070.00016.88
8.0.210.0000.00716.70
8.0.200.0030.00316.77
8.0.190.0050.00316.94
8.0.180.0040.00416.84
8.0.170.0000.00816.69
8.0.160.0000.00716.86
8.0.150.0070.00016.84
8.0.140.0030.00916.75
8.0.130.0000.00513.29
8.0.120.0080.00016.70
8.0.110.0000.00716.74
8.0.100.0040.00416.69
8.0.90.0050.00316.61
8.0.80.0160.00616.80
8.0.70.0070.00016.80
8.0.60.0000.00816.81
8.0.50.0000.00716.86
8.0.30.0100.00817.15
8.0.20.0070.01517.40
8.0.10.0040.00416.95
8.0.00.0100.00716.79
7.4.330.0020.00215.00
7.4.320.0030.00316.36
7.4.300.0030.00316.43
7.4.290.0070.00416.57
7.4.280.0040.00716.42
7.4.270.0000.00716.52
7.4.260.0040.00816.39
7.4.250.0070.00016.47
7.4.240.0040.00316.51
7.4.230.0030.00316.42
7.4.220.0090.00916.57
7.4.210.0060.00916.37
7.4.200.0040.00416.46
7.4.160.0120.00316.46
7.4.150.0030.01317.40
7.4.140.0100.00617.86
7.4.130.0090.00616.47
7.4.120.0070.00916.42
7.4.110.0110.01416.54
7.4.100.0080.01416.27
7.4.90.0130.00616.38
7.4.80.0100.01319.39
7.4.70.0090.00616.23
7.4.60.0110.00716.37
7.4.50.0040.00416.51
7.4.40.0070.01016.10
7.4.30.0070.01016.40
7.4.00.0100.00714.67
7.3.330.0000.00713.35
7.3.320.0000.00713.06
7.3.310.0030.00316.28
7.3.300.0070.00016.19
7.3.290.0070.00716.25
7.3.280.0080.00916.27
7.3.270.0140.01017.40
7.3.260.0120.00816.36
7.3.250.0070.01016.35
7.3.240.0060.01316.23
7.3.230.0120.00316.39
7.3.210.0090.00616.37
7.3.200.0150.00319.39
7.3.190.0130.00316.45
7.3.180.0100.00716.43
7.3.170.0040.01316.28
7.3.160.0060.00916.36
7.3.120.0070.01014.74
7.2.330.0100.00616.45
7.2.320.0100.00616.21
7.2.310.0040.02116.43
7.2.300.0070.01016.45
7.2.290.0060.01016.44
7.2.60.0120.00416.57
7.2.00.0030.01019.36
7.1.200.0000.01115.61
7.1.100.0110.00418.14
7.1.70.0040.00417.14
7.1.60.0060.01919.70
7.1.50.0030.01316.82
7.1.00.0030.07322.42
7.0.200.0600.00614.71
7.0.140.0000.07722.04
7.0.60.0030.08019.94
7.0.50.0030.09017.88
7.0.40.0030.04720.15
7.0.30.0330.05320.13
7.0.20.0230.04720.20
7.0.10.0370.06020.09
7.0.00.0000.06020.33
5.6.280.0030.07321.00
5.6.210.0070.05720.71
5.6.200.0070.07318.25
5.6.190.0100.07720.39
5.6.180.0200.04720.43
5.6.170.0270.07720.53
5.6.160.0100.08020.41
5.6.150.0100.08318.17
5.6.140.0100.07718.21
5.6.130.0100.08318.15
5.6.120.0130.07021.02
5.6.110.0070.05721.14
5.6.100.0100.06021.11
5.6.90.0100.08320.93
5.6.80.0130.07020.29
5.5.350.0170.05720.41
5.5.340.0130.07717.96
5.5.330.0100.03720.41
5.5.320.0230.08020.19
5.5.310.0370.06720.30
5.5.300.0100.03717.94
5.5.290.0100.07317.94
5.5.280.0070.09020.88
5.5.270.0070.06320.65
5.5.260.0070.06320.84
5.5.250.0170.06320.78
5.5.240.0030.06020.20
5.4.450.0630.06319.50
5.4.440.0500.06019.63
5.4.430.0070.05719.69
5.4.420.0770.00019.68
5.4.410.0030.06318.96
5.4.400.0800.05318.73
5.4.390.0970.05718.51
5.4.380.0130.05718.79
5.4.370.0170.04718.73
5.4.360.0200.04018.75
5.4.350.0070.03712.02
5.4.340.0030.03612.02
5.4.320.0050.04212.51
5.4.310.0070.04512.50
5.4.300.0060.03712.51
5.4.290.0040.04012.50
5.4.280.0060.03612.40
5.4.270.0030.04012.40
5.4.260.0060.03812.40
5.4.250.0050.03912.40
5.4.240.0050.03712.39
5.4.230.0050.03912.39
5.4.220.0060.03612.39
5.4.210.0060.03512.39
5.4.200.0070.03712.39
5.4.190.0030.04012.39
5.4.180.0080.03512.38
5.4.170.0070.03712.40
5.4.160.0060.03612.39
5.4.150.0070.03512.39
5.4.140.0080.03612.07
5.4.130.0080.03512.06
5.4.120.0090.03412.02
5.4.110.0070.03612.02
5.4.100.0130.03712.02
5.4.90.0080.04112.02
5.4.80.0100.04712.02
5.4.70.0070.04912.02
5.4.60.0140.04412.02
5.4.50.0110.04412.01
5.4.40.0060.05112.00
5.4.30.0080.04612.00
5.4.20.0120.04412.00
5.4.10.0100.04612.00
5.4.00.0080.04711.49
5.3.290.0100.04612.80
5.3.280.0060.03912.71
5.3.270.0120.03312.73
5.3.260.0060.04112.71
5.3.250.0080.03512.72
5.3.240.0110.03312.72
5.3.230.0070.03712.70
5.3.220.0090.03912.68
5.3.210.0080.05412.68
5.3.200.0070.03912.68
5.3.190.0100.04112.68
5.3.180.0080.05012.68
5.3.170.0090.04912.67
5.3.160.0070.05112.67
5.3.150.0070.04112.67
5.3.140.0090.04012.66
5.3.130.0090.04312.66
5.3.120.0080.03712.66
5.3.110.0070.03612.65
5.3.100.0060.03712.13
5.3.90.0070.03712.11
5.3.80.0070.03612.10
5.3.70.0070.03512.10
5.3.60.0060.03612.09
5.3.50.0030.03912.03
5.3.40.0040.03912.04
5.3.30.0060.03511.98
5.3.20.0030.03711.77
5.3.10.0040.03611.74
5.3.00.0040.03711.73
5.2.170.0070.0379.23
5.2.160.0040.0299.23
5.2.150.0050.0309.22
5.2.140.0060.0299.22
5.2.130.0050.0309.18
5.2.120.0070.0289.18
5.2.110.0060.0319.19
5.2.100.0090.0309.18
5.2.90.0070.0349.18
5.2.80.0070.0329.18
5.2.70.0030.0319.18
5.2.60.0030.0329.14
5.2.50.0060.0289.10
5.2.40.0050.0299.08
5.2.30.0050.0299.05
5.2.20.0050.0289.05
5.2.10.0080.0248.95
5.2.00.0050.0288.81
5.1.60.0070.0248.10
5.1.50.0100.0198.09
5.1.40.0040.0278.07
5.1.30.0020.0338.42
5.1.20.0030.0288.44
5.1.10.0050.0258.17
5.1.00.0050.0258.17
5.0.50.0030.0216.65
5.0.40.0040.0226.51
5.0.30.0040.0316.32
5.0.20.0010.0226.29
5.0.10.0020.0236.27
5.0.00.0040.0316.26
4.4.90.0040.0154.78
4.4.80.0040.0144.75
4.4.70.0050.0174.75
4.4.60.0050.0164.75
4.4.50.0050.0134.77
4.4.40.0040.0244.71
4.4.30.0030.0154.75
4.4.20.0030.0164.84
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0010.0174.67
4.3.100.0020.0154.67
4.3.90.0050.0124.63
4.3.80.0040.0224.58
4.3.70.0070.0154.63
4.3.60.0040.0204.63
4.3.50.0040.0204.63
4.3.40.0030.0244.54
4.3.30.0020.0163.29
4.3.20.0020.0163.27
4.3.10.0010.0163.24
4.3.00.0030.0276.65

preferences:
40.53 ms | 401 KiB | 5 Q