3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * http://php.net/manual/en/language.oop5.interfaces.php * "The class implementing the interface must use the exact same method signatures * as are defined in the interface. Not doing so will result in a fatal error." */ interface IFoo { public function bar($one); } class Foo implements IFoo { public function bar($one, $two = 2) {} } $foo = new Foo();

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.0120.00318.31
8.3.50.0070.01221.94
8.3.40.0080.00818.42
8.3.30.0140.00718.71
8.3.20.0000.00920.14
8.3.10.0050.00320.23
8.3.00.0060.00319.26
8.2.180.0120.00316.75
8.2.170.0070.00722.96
8.2.160.0140.00020.35
8.2.150.0100.01024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00322.19
8.2.110.0030.00722.07
8.2.100.0170.00017.70
8.2.90.0040.00418.16
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0050.00517.80
8.2.50.0030.00618.22
8.2.40.0040.00420.57
8.2.30.0080.00020.95
8.2.20.0050.00217.61
8.2.10.0080.00018.05
8.2.00.0000.00717.55
8.1.280.0030.01625.92
8.1.270.0000.00823.88
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0070.00323.96
8.1.230.0110.00022.66
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0030.00518.87
8.1.150.0000.00718.80
8.1.140.0000.00717.34
8.1.130.0000.00717.73
8.1.120.0070.00017.43
8.1.110.0050.00317.48
8.1.100.0000.00717.41
8.1.90.0040.00417.41
8.1.80.0000.00717.36
8.1.70.0070.00017.44
8.1.60.0040.00417.58
8.1.50.0050.00317.52
8.1.40.0060.00617.54
8.1.30.0040.00417.61
8.1.20.0040.00417.58
8.1.10.0030.00617.44
8.1.00.0030.00517.33
8.0.300.0000.00722.03
8.0.290.0000.01316.58
8.0.280.0070.00018.43
8.0.270.0030.00317.18
8.0.260.0030.00317.26
8.0.250.0000.00717.00
8.0.240.0070.00016.97
8.0.230.0000.00716.96
8.0.220.0000.00716.79
8.0.210.0030.00316.89
8.0.200.0030.00316.91
8.0.190.0000.00816.93
8.0.180.0000.00716.94
8.0.170.0040.00416.82
8.0.160.0000.00716.97
8.0.150.0040.00416.79
8.0.140.0080.00016.75
8.0.130.0000.00613.31
8.0.120.0040.00416.88
8.0.110.0000.00716.84
8.0.100.0040.00416.78
8.0.90.0000.00716.77
8.0.80.0130.00716.87
8.0.70.0040.00416.92
8.0.60.0050.00316.76
8.0.50.0040.00416.73
8.0.30.0110.00817.13
8.0.20.0110.01017.40
8.0.10.0050.00316.99
8.0.00.0100.00716.80
7.4.330.0030.00315.09
7.4.320.0000.00816.52
7.4.300.0060.00016.49
7.4.290.0030.00316.51
7.4.280.0030.00316.49
7.4.270.0000.00716.40
7.4.260.0040.00416.41
7.4.250.0080.00016.43
7.4.240.0050.00216.63
7.4.230.0000.00716.25
7.4.220.0140.00416.71
7.4.210.0080.00416.64
7.4.200.0030.00316.48
7.4.160.0100.00716.48
7.4.150.0090.01517.40
7.4.140.0110.01117.86
7.4.130.0060.01116.35
7.4.120.0100.01016.48
7.4.110.0130.00316.52
7.4.100.0090.01216.41
7.4.90.0120.00516.47
7.4.80.0070.01016.60
7.4.70.0140.00316.65
7.4.60.0080.00816.36
7.4.50.0000.00816.39
7.4.40.0110.00516.56
7.4.30.0070.01016.27
7.4.00.0000.01715.18
7.3.330.0000.00513.16
7.3.320.0060.00013.01
7.3.310.0000.00716.21
7.3.300.0000.00616.18
7.3.290.0030.01016.16
7.3.280.0100.00516.12
7.3.270.0030.01517.40
7.3.260.0100.01016.29
7.3.250.0050.01216.21
7.3.240.0100.00716.50
7.3.230.0100.00716.39
7.3.210.0150.00316.44
7.3.200.0030.01319.39
7.3.190.0160.00616.45
7.3.180.0120.00616.43
7.3.170.0130.00616.38
7.3.160.0070.01316.22
7.3.10.0100.00316.34
7.3.00.0000.01416.43
7.2.330.0130.00716.30
7.2.320.0060.01216.54
7.2.310.0090.00916.46
7.2.300.0130.00316.52
7.2.290.0060.01116.58
7.2.130.0030.01117.01
7.2.120.0090.00616.56
7.2.110.0000.01516.66
7.2.100.0060.00316.96
7.2.90.0060.01016.64
7.2.80.0090.00016.60
7.2.70.0030.00616.63
7.2.60.0050.00816.78
7.2.50.0040.01116.66
7.2.40.0060.00916.82
7.2.30.0100.00716.97
7.2.20.0060.00616.73
7.2.10.0070.01016.92
7.2.00.0070.00716.66
7.1.250.0030.00715.72
7.1.200.0030.00715.76
7.1.70.0040.00417.02
7.1.60.0030.01417.14
7.1.50.0070.01316.60
7.1.00.0030.07722.36
7.0.200.0040.01216.69
7.0.140.0000.07722.08
7.0.60.0030.04319.92
7.0.50.0030.06317.87
7.0.40.0070.08320.14
7.0.30.0230.05020.12
7.0.20.0300.06020.23
7.0.10.0030.09020.02
7.0.00.0100.04320.25
5.6.280.0070.07020.78
5.6.210.0100.07720.57
5.6.200.0100.05318.15
5.6.190.0030.04320.46
5.6.180.0600.06720.61
5.6.170.0230.05320.54
5.6.160.0030.05720.57
5.6.150.0070.07718.19
5.6.140.0070.08318.23
5.6.130.0030.04018.13
5.6.120.0030.08720.93
5.6.110.0030.09720.98
5.6.100.0070.07720.97
5.6.90.0030.06020.99
5.6.80.0070.08020.48
5.5.350.0170.07720.32
5.5.340.0100.08318.08
5.5.330.0070.06320.27
5.5.320.0370.06720.42
5.5.310.0230.07020.34
5.5.300.0100.07017.94
5.5.290.0100.08018.02
5.5.280.0030.05720.69
5.5.270.0170.06020.92
5.5.260.0070.08020.79
5.5.250.0100.07720.57
5.5.240.0100.06720.12
5.4.450.0070.06319.47
5.4.440.0800.05019.61
5.4.430.0130.06019.30
5.4.420.0730.05319.64
5.4.410.0870.04319.07
5.4.400.0970.04719.00
5.4.390.1000.05019.29
5.4.380.0370.05718.59
5.4.370.0570.04318.54
5.4.360.0400.04318.56
5.4.350.0400.06018.59
5.4.340.0370.05318.75
5.4.320.0050.03712.50
5.4.310.0080.03612.49
5.4.300.0040.03812.50
5.4.290.0050.03912.50
5.4.280.0040.04412.40
5.4.270.0050.03712.39
5.4.260.0090.03412.39
5.4.250.0020.04012.39
5.4.240.0080.03512.39
5.4.230.0090.03912.39
5.4.220.0080.03912.39
5.4.210.0060.04012.39
5.4.200.0050.03812.38
5.4.190.0070.04212.39
5.4.180.0040.03812.38
5.4.170.0060.03612.39
5.4.160.0060.03512.39
5.4.150.0080.03812.39
5.4.140.0070.04412.07
5.4.130.0050.03612.06
5.4.120.0070.04612.02
5.4.110.0060.03712.02
5.4.100.0080.03412.01
5.4.90.0090.03712.01
5.4.80.0080.04412.01
5.4.70.0080.04512.01
5.4.60.0040.03612.01
5.4.50.0050.03612.01
5.4.40.0060.03412.00
5.4.30.0060.03511.99
5.4.20.0070.03311.99
5.4.10.0070.03912.00
5.4.00.0040.04211.48
5.3.290.0090.04912.80
5.3.280.0080.03812.71
5.3.270.0070.03912.72
5.3.260.0070.03612.71
5.3.250.0080.04412.72
5.3.240.0040.04212.72
5.3.230.0060.04812.71
5.3.220.0090.04312.68
5.3.210.0090.03512.68
5.3.200.0120.03312.68
5.3.190.0070.04112.68
5.3.180.0060.04112.67
5.3.170.0050.04212.67
5.3.160.0040.04012.67
5.3.150.0080.03812.67
5.3.140.0110.03812.66
5.3.130.0040.04112.66
5.3.120.0060.04912.66
5.3.110.0080.04012.66
5.3.100.0070.04012.12
5.3.90.0060.03912.11
5.3.80.0060.03612.09
5.3.70.0080.04012.09
5.3.60.0100.03712.08
5.3.50.0060.03912.04
5.3.40.0070.03812.04
5.3.30.0060.03411.98
5.3.20.0060.03511.76
5.3.10.0090.03111.74
5.3.00.0050.03611.72
5.2.170.0050.0299.22
5.2.160.0090.0359.23
5.2.150.0060.0289.22
5.2.140.0050.0329.22
5.2.130.0060.0299.18
5.2.120.0040.0309.18
5.2.110.0080.0369.18
5.2.100.0050.0299.18
5.2.90.0060.0279.18
5.2.80.0080.0289.18
5.2.70.0150.0379.17
5.2.60.0110.0369.13
5.2.50.0020.0349.10
5.2.40.0080.0339.08
5.2.30.0040.0309.04
5.2.20.0050.0289.04
5.2.10.0050.0298.95
5.2.00.0070.0288.81
5.1.60.0010.0278.09
5.1.50.0010.0298.09
5.1.40.0060.0258.07
5.1.30.0040.0268.42
5.1.20.0040.0268.44
5.1.10.0060.0258.16
5.1.00.0050.0258.16
5.0.50.0040.0206.64
5.0.40.0030.0196.50
5.0.30.0040.0306.32
5.0.20.0040.0226.28
5.0.10.0030.0216.26
5.0.00.0040.0366.25
4.4.90.0040.0174.78
4.4.80.0040.0154.75
4.4.70.0010.0184.75
4.4.60.0040.0154.76
4.4.50.0030.0144.77
4.4.40.0050.0294.71
4.4.30.0020.0214.75
4.4.20.0040.0184.84
4.4.10.0040.0174.85
4.4.00.0050.0314.76
4.3.110.0040.0224.67
4.3.100.0050.0134.66
4.3.90.0030.0164.64
4.3.80.0030.0304.59
4.3.70.0050.0194.63
4.3.60.0050.0134.63
4.3.50.0030.0194.62
4.3.40.0030.0254.54
4.3.30.0010.0173.28
4.3.20.0010.0183.26
4.3.10.0020.0193.22
4.3.00.0070.0206.78

preferences:
48.57 ms | 401 KiB | 5 Q