3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function fooBar($foo, $bar=null); } interface Bar extends Foo { public function fooBar($foo, $bar=null); } class FooBar implements Bar { public function fooBar($foo, $bar=null) { } } $d = new FooBar();

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.0080.00618.43
8.3.50.0230.01522.05
8.3.40.0100.00318.67
8.3.30.0040.01518.97
8.3.20.0040.00420.21
8.3.10.0040.00420.41
8.3.00.0040.00419.24
8.2.180.0080.00816.75
8.2.170.0000.01422.96
8.2.160.0110.00420.39
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00922.19
8.2.110.0030.00720.52
8.2.100.0090.00318.09
8.2.90.0050.00319.28
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00718.00
8.2.30.0030.00617.98
8.2.20.0000.00817.60
8.2.10.0000.00718.04
8.2.00.0000.00717.55
8.1.280.0080.00825.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0070.00323.82
8.1.230.0000.01119.13
8.1.220.0070.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0030.00521.96
8.1.150.0080.00018.88
8.1.140.0040.00417.35
8.1.130.0030.00317.81
8.1.120.0030.00317.34
8.1.110.0050.00217.37
8.1.100.0000.00717.44
8.1.90.0000.00717.39
8.1.80.0000.00717.44
8.1.70.0070.00017.38
8.1.60.0040.00417.48
8.1.50.0030.00617.41
8.1.40.0000.00717.51
8.1.30.0060.00317.55
8.1.20.0060.00317.65
8.1.10.0000.00817.43
8.1.00.0040.00417.45
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0030.00318.34
8.0.270.0030.00317.11
8.0.260.0000.00617.17
8.0.250.0030.00316.92
8.0.240.0000.00716.86
8.0.230.0030.00516.95
8.0.220.0000.00716.75
8.0.210.0070.00016.95
8.0.200.0000.00716.98
8.0.190.0030.00516.90
8.0.180.0040.00416.88
8.0.170.0060.00316.91
8.0.160.0000.00716.91
8.0.150.0070.00016.77
8.0.140.0000.00916.85
8.0.130.0050.00313.35
8.0.120.0070.00016.83
8.0.110.0050.00216.78
8.0.100.0000.00716.91
8.0.90.0040.00416.78
8.0.80.0090.00616.84
8.0.70.0070.00016.73
8.0.60.0080.00016.91
8.0.50.0040.00416.94
8.0.30.0050.01417.16
8.0.20.0080.01117.40
8.0.10.0040.00417.02
8.0.00.0090.00916.73
7.4.330.0050.00015.03
7.4.320.0030.00316.57
7.4.300.0030.00316.43
7.4.290.0030.00316.45
7.4.280.0000.00716.43
7.4.270.0070.00016.34
7.4.260.0000.00816.53
7.4.250.0040.00416.35
7.4.240.0070.00016.44
7.4.230.0080.00016.50
7.4.220.0120.00916.40
7.4.210.0030.01616.49
7.4.200.0000.00716.43
7.4.160.0090.00616.45
7.4.150.0070.01717.40
7.4.140.0160.01917.86
7.4.130.0100.00716.52
7.4.120.0090.01116.56
7.4.110.0030.01316.55
7.4.100.0030.01316.57
7.4.90.0150.00416.46
7.4.80.0160.00319.39
7.4.70.0000.01816.45
7.4.60.0110.00716.43
7.4.50.0000.00416.61
7.4.40.0100.01016.35
7.4.30.0030.01316.32
7.4.00.0100.00814.83
7.3.330.0020.00213.14
7.3.320.0050.00013.37
7.3.310.0030.00316.39
7.3.300.0000.00616.21
7.3.290.0070.01016.29
7.3.280.0080.01016.36
7.3.270.0150.00417.40
7.3.260.0150.00316.55
7.3.250.0120.00516.42
7.3.240.0070.01016.43
7.3.230.0120.00816.39
7.3.210.0080.00816.37
7.3.200.0030.01319.39
7.3.190.0100.01016.49
7.3.180.0130.00316.46
7.3.170.0100.00716.43
7.3.160.0170.00416.45
7.3.120.0130.00614.88
7.3.110.0100.00714.90
7.3.100.0100.00714.80
7.3.90.0030.01314.53
7.3.80.0130.00014.86
7.3.70.0060.00314.80
7.3.60.0030.00514.68
7.3.50.0030.00714.65
7.3.40.0090.00614.63
7.3.30.0000.00914.81
7.3.20.0030.00916.62
7.3.10.0070.00316.37
7.3.00.0030.00916.28
7.2.330.0070.01016.58
7.2.320.0110.00616.55
7.2.310.0140.00316.50
7.2.300.0060.01016.27
7.2.290.0100.00716.61
7.2.250.0070.01114.77
7.2.240.0070.01315.19
7.2.230.0040.01414.76
7.2.220.0060.00314.82
7.2.210.0070.01014.84
7.2.200.0030.01014.95
7.2.190.0070.01014.77
7.2.180.0040.01114.77
7.2.170.0080.00414.88
7.2.60.0000.01316.64
7.1.330.0120.00015.71
7.1.320.0030.00715.71
7.1.310.0140.00015.73
7.1.300.0090.00315.37
7.1.290.0120.00315.72
7.1.280.0030.00715.48
7.1.270.0040.01115.62
7.1.260.0000.01315.74
7.1.200.0100.00315.48
7.1.70.0060.00617.14
7.1.60.0100.00719.32
7.1.50.0070.01316.88
7.1.00.0030.07722.35
7.0.200.0070.00316.39
7.0.140.0030.07021.92
7.0.60.0170.06719.88
7.0.50.0070.04017.84
7.0.40.0170.07319.96
7.0.30.0270.05020.30
7.0.20.0300.07320.06
7.0.10.0100.07720.22
7.0.00.0100.04020.25
5.6.280.0070.07021.11
5.6.210.0100.07320.60
5.6.200.0130.05718.20
5.6.190.0030.08720.57
5.6.180.3900.03020.53
5.6.170.0300.07020.56
5.6.160.0030.04320.50
5.6.150.0100.04318.15
5.6.140.0170.05718.13
5.6.130.0070.03718.15
5.6.120.0100.07721.00
5.6.110.0130.08021.11
5.6.100.0100.08721.01
5.6.90.0070.07320.98
5.6.80.0100.06720.38
5.6.70.0370.06320.39
5.5.350.0270.04020.34
5.5.340.0100.03317.99
5.5.330.0070.05320.40
5.5.320.0430.06720.20
5.5.310.0370.07020.23
5.5.300.0030.08317.97
5.5.290.0170.07717.98
5.5.280.0100.03720.99
5.5.270.0070.08320.73
5.5.260.0100.07720.96
5.5.250.0000.09020.58
5.5.240.0300.08320.27
5.4.450.0130.05719.17
5.4.440.1000.06019.39
5.4.430.0700.06019.59
5.4.420.0670.00019.63
5.4.410.0600.00019.31
5.4.400.0600.00019.16
5.4.390.0600.00019.13
5.4.380.0630.00019.06
5.4.370.0600.00019.24
5.4.360.0630.00019.16
5.4.350.0630.00019.05
5.4.340.0630.00019.10
5.4.320.0050.03712.50
5.4.310.0100.03912.49
5.4.300.0110.03712.50
5.4.290.0060.04112.50
5.4.280.0080.03312.39
5.4.270.0050.04512.39
5.4.260.0060.03812.39
5.4.250.0050.03812.39
5.4.240.0040.03812.39
5.4.230.0030.04412.39
5.4.220.0070.03512.39
5.4.210.0030.03712.39
5.4.200.0100.03312.39
5.4.190.0090.03312.38
5.4.180.0080.03412.38
5.4.170.0070.03812.40
5.4.160.0050.03712.39
5.4.150.0060.03612.39
5.4.140.0040.03812.07
5.4.130.0060.04112.06
5.4.120.0050.04312.02
5.4.110.0060.03512.02
5.4.100.0050.03612.01
5.4.90.0040.04012.01
5.4.80.0060.03712.01
5.4.70.0090.03312.01
5.4.60.0090.03112.01
5.4.50.0050.03512.01
5.4.40.0070.03412.00
5.4.30.0090.03611.99
5.4.20.0040.03612.00
5.4.10.0070.03411.99
5.4.00.0040.03711.48
5.3.290.0030.04312.80
5.3.280.0060.03812.71
5.3.270.0060.04112.72
5.3.260.0070.04312.72
5.3.250.0020.04112.72
5.3.240.0060.03812.72
5.3.230.0080.03512.71
5.3.220.0050.03812.68
5.3.210.0070.03812.68
5.3.200.0060.03612.68
5.3.190.0070.03512.68
5.3.180.0070.03512.67
5.3.170.0070.03512.67
5.3.160.0070.03512.68
5.3.150.0090.04012.67
5.3.140.0080.03512.66
5.3.130.0090.04212.66
5.3.120.0060.04012.66
5.3.110.0090.04712.66
5.3.100.0060.03712.12
5.3.90.0060.03712.10
5.3.80.0040.04012.10
5.3.70.0050.03712.10
5.3.60.0050.03712.09
5.3.50.0060.03512.04
5.3.40.0080.03412.04
5.3.30.0070.03411.98
5.3.20.0040.03711.77
5.3.10.0050.03511.73
5.3.00.0060.03711.73
5.2.170.0050.0309.23
5.2.160.0070.0279.23
5.2.150.0040.0319.23
5.2.140.0070.0319.23
5.2.130.0050.0289.19
5.2.120.0070.0309.19
5.2.110.0060.0329.20
5.2.100.0050.0369.18
5.2.90.0080.0359.19
5.2.80.0050.0299.18
5.2.70.0050.0299.18
5.2.60.0080.0279.13
5.2.50.0040.0309.10
5.2.40.0070.0329.08
5.2.30.0020.0369.05
5.2.20.0040.0299.04
5.2.10.0070.0258.95
5.2.00.0040.0298.81
5.1.60.0040.0238.09
5.1.50.0060.0238.09
5.1.40.0080.0218.07
5.1.30.0060.0248.42
5.1.20.0040.0278.45
5.1.10.0040.0268.17
5.1.00.0020.0298.17
5.0.50.0030.0216.65
5.0.40.0050.0186.50
5.0.30.0030.0326.33
5.0.20.0020.0216.29
5.0.10.0030.0206.26
5.0.00.0020.0326.25
4.4.90.0020.0164.78
4.4.80.0010.0184.76
4.4.70.0050.0144.75
4.4.60.0050.0144.75
4.4.50.0020.0164.77
4.4.40.0050.0234.71
4.4.30.0050.0134.76
4.4.20.0020.0164.84
4.4.10.0030.0174.85
4.4.00.0050.0234.75
4.3.110.0020.0174.67
4.3.100.0020.0164.66
4.3.90.0020.0154.63
4.3.80.0020.0254.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0050.0134.63
4.3.40.0020.0244.53
4.3.30.0020.0163.28
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0030.0207.16

preferences:
47.53 ms | 401 KiB | 5 Q