3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0070.00718.56
8.3.50.0120.00922.07
8.3.40.0120.00418.42
8.3.30.0070.00718.97
8.3.20.0000.00920.34
8.3.10.0080.00020.40
8.3.00.0040.00419.13
8.2.180.0140.00716.38
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0130.00624.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00022.06
8.2.110.0030.00722.15
8.2.100.0040.00817.90
8.2.90.0040.00417.75
8.2.80.0050.00317.97
8.2.70.0060.00617.78
8.2.60.0030.00517.93
8.2.50.0060.00618.10
8.2.40.0060.00320.45
8.2.30.0090.00019.26
8.2.20.0050.00217.81
8.2.10.0040.00417.95
8.2.00.0070.00017.59
8.1.280.0100.00725.92
8.1.270.0040.00423.92
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00423.97
8.1.230.0110.00019.01
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0040.00418.58
8.1.160.0000.00722.02
8.1.150.0000.00718.89
8.1.140.0040.00417.49
8.1.130.0000.00717.83
8.1.120.0040.00417.43
8.1.110.0040.00417.46
8.1.100.0050.00217.46
8.1.90.0000.00817.36
8.1.80.0040.00417.50
8.1.70.0070.00017.38
8.1.60.0040.00417.48
8.1.50.0050.00217.52
8.1.40.0080.00417.55
8.1.30.0040.00417.49
8.1.20.0030.00617.63
8.1.10.0030.00617.41
8.1.00.0000.00817.36
8.0.300.0030.00519.65
8.0.290.0060.00316.75
8.0.280.0070.00018.44
8.0.270.0000.00717.26
8.0.260.0030.00317.16
8.0.250.0070.00016.83
8.0.240.0000.00816.85
8.0.230.0050.00317.02
8.0.220.0030.00316.90
8.0.210.0040.00416.85
8.0.200.0030.00316.99
8.0.190.0030.00616.90
8.0.180.0040.00416.97
8.0.170.0000.00716.79
8.0.160.0070.00016.85
8.0.150.0070.00016.86
8.0.140.0000.00716.91
8.0.130.0070.00013.34
8.0.120.0000.00816.89
8.0.110.0000.00716.79
8.0.100.0000.00716.84
8.0.90.0030.00317.00
8.0.80.0090.00616.89
8.0.70.0000.00716.95
8.0.60.0000.00717.00
8.0.50.0050.00316.69
8.0.30.0100.00917.04
8.0.20.0140.00817.40
8.0.10.0000.00816.79
8.0.00.0050.01416.63
7.4.330.0060.00015.00
7.4.320.0030.00316.63
7.4.300.0000.00616.55
7.4.290.0000.00616.65
7.4.280.0000.00716.48
7.4.270.0060.00016.53
7.4.260.0030.00316.42
7.4.250.0040.00416.61
7.4.240.0030.00516.44
7.4.230.0040.00416.40
7.4.220.0120.00916.50
7.4.210.0070.00716.51
7.4.200.0040.00316.59
7.4.160.0030.01216.52
7.4.150.0170.00017.40
7.4.140.0050.01417.86
7.4.130.0140.00516.46
7.4.120.0130.00316.55
7.4.110.0080.00816.40
7.4.100.0000.01616.40
7.4.90.0140.00916.46
7.4.80.0060.01216.52
7.4.70.0100.01316.70
7.4.60.0130.01016.61
7.4.50.0060.00316.69
7.4.40.0060.00916.49
7.4.30.0070.01016.64
7.4.00.0040.01414.85
7.3.330.0000.00613.14
7.3.320.0050.00013.19
7.3.310.0070.00016.07
7.3.300.0000.00716.09
7.3.290.0080.00516.20
7.3.280.0100.00716.20
7.3.270.0040.01317.40
7.3.260.0060.01616.36
7.3.250.0140.00516.43
7.3.240.0170.00716.26
7.3.230.0120.00816.39
7.3.210.0060.01116.25
7.3.200.0050.00519.39
7.3.190.0100.00616.43
7.3.180.0100.00716.35
7.3.170.0150.00616.35
7.3.160.0060.01516.32
7.3.00.0120.00316.54
7.2.330.0120.01216.34
7.2.320.0090.00916.61
7.2.310.0120.00916.55
7.2.300.0030.01416.44
7.2.290.0070.01016.24
7.2.130.0060.00916.76
7.2.120.0070.00716.50
7.2.110.0130.00316.86
7.2.100.0030.01016.49
7.2.90.0100.00316.85
7.2.80.0100.01017.07
7.2.70.0130.00316.92
7.2.60.0030.00916.95
7.2.50.0130.00616.98
7.2.40.0030.01316.98
7.2.30.0070.00716.94
7.2.20.0060.00917.04
7.2.10.0000.01416.77
7.2.00.0150.00716.91
7.1.250.0090.00615.68
7.1.240.0060.00615.52
7.1.230.0070.00715.64
7.1.220.0090.00315.73
7.1.210.0030.01315.71
7.1.200.0060.00315.53
7.1.190.0120.00315.53
7.1.180.0090.00315.80
7.1.170.0070.00315.74
7.1.160.0080.00815.52
7.1.150.0000.01115.68
7.1.140.0040.00415.32
7.1.130.0000.01415.75
7.1.120.0030.01015.57
7.1.110.0030.01015.50
7.1.100.0110.00416.95
7.1.90.0030.01015.58
7.1.80.0000.00915.39
7.1.70.0060.00616.25
7.1.60.0060.01117.47
7.1.50.0070.00716.19
7.1.40.0060.00315.35
7.1.30.0060.00615.55
7.1.20.0000.01215.22
7.1.10.0000.01215.31
7.1.00.0070.04019.00
7.0.330.0060.00615.30
7.0.320.0070.00415.32
7.0.310.0050.00515.23
7.0.300.0080.00415.46
7.0.290.0060.00615.00
7.0.280.0070.00715.25
7.0.270.0030.00914.82
7.0.260.0060.00615.14
7.0.250.0060.00615.52
7.0.240.0040.00815.32
7.0.230.0070.00715.34
7.0.220.0040.00415.32
7.0.210.0070.01015.37
7.0.200.0030.00815.71
7.0.190.0030.01115.06
7.0.180.0040.00715.02
7.0.170.0030.00615.18
7.0.160.0040.00715.28
7.0.150.0060.00315.05
7.0.140.0040.03718.59
7.0.130.0080.00815.47
7.0.120.0100.00315.42
7.0.110.0030.01315.39
7.0.100.0110.00015.45
7.0.90.0000.01815.38
7.0.80.0000.01215.35
7.0.70.0040.00815.41
7.0.60.0070.04117.67
7.0.50.0070.04316.72
7.0.40.0080.04716.79
7.0.30.0110.04016.82
7.0.20.0210.04216.74
7.0.10.0090.02416.85
7.0.00.0090.03116.61
5.6.380.0070.00714.21
5.6.370.0030.01013.96
5.6.360.0030.00914.20
5.6.350.0040.00414.34
5.6.340.0030.00514.18
5.6.330.0040.01114.27
5.6.320.0060.00614.32
5.6.310.0070.00314.48
5.6.300.0030.01014.61
5.6.290.0000.01614.42
5.6.280.0030.04117.52
5.6.270.0110.00014.25
5.6.260.0100.00314.25
5.6.250.0150.00014.13
5.6.240.0030.01414.36
5.6.230.0090.00614.41
5.6.220.0050.00514.27
5.6.210.0070.01917.40
5.6.200.0110.02616.18
5.6.190.0050.03217.35
5.6.180.0150.03117.48
5.6.170.0120.02517.28
5.6.160.0070.02517.42
5.6.150.0070.02316.12
5.6.140.0020.02716.21
5.6.130.0050.02316.21
5.6.120.0100.02217.64
5.6.110.0050.05217.66
5.6.100.0120.04517.54
5.6.90.0080.02717.82
5.6.80.0030.05017.42
5.6.70.0110.00714.24
5.6.60.0220.00014.15
5.6.50.0160.00314.31
5.6.40.0100.00314.05
5.6.30.0070.01014.22
5.6.20.0100.00614.29
5.6.10.0110.00414.25
5.6.00.0060.00613.99
5.5.380.0030.00711.28
5.5.370.0100.00311.18
5.5.360.0090.00311.18
5.5.350.0150.03615.84
5.5.340.0080.03814.63
5.5.330.0110.03815.84
5.5.320.0160.02615.76
5.5.310.0150.02315.71
5.5.300.0030.04714.64
5.5.290.0030.04814.56
5.5.280.0090.03716.06
5.5.270.0000.03915.99
5.5.260.0050.02215.93
5.5.250.0050.04515.82
5.5.240.0020.04315.73
5.5.230.0060.00311.18
5.5.220.0090.00011.18
5.5.210.0070.00011.18
5.5.200.0000.01311.18
5.5.190.0030.00611.18
5.5.180.0120.00611.19
5.5.170.0070.00011.27
5.5.160.0070.00311.18
5.5.150.0110.00411.18
5.5.140.0120.00611.18
5.5.130.0110.00011.23
5.5.120.0060.00311.18
5.5.110.0090.00011.18
5.5.100.0090.00311.18
5.5.90.0000.01111.26
5.5.80.0030.00511.18
5.5.70.0060.00911.18
5.5.60.0100.01011.18
5.5.50.0060.00611.18
5.5.40.0060.00611.18
5.5.30.0050.00511.18
5.5.20.0030.01011.18
5.5.10.0070.00011.18
5.5.00.0030.00311.18
5.4.450.0820.02715.22
5.4.440.0850.02315.18
5.4.430.0870.02315.33
5.4.420.0970.01815.35
5.4.410.0870.02215.23
5.4.400.0780.02015.20
5.4.390.0900.01815.13
5.4.380.0980.01715.19
5.4.370.0200.02315.12
5.4.360.0090.02315.01
5.4.350.0100.02715.18
5.4.340.0640.01915.19
5.4.330.0080.00411.18
5.4.320.0930.01815.21
5.4.310.1080.02415.08
5.4.300.0660.02715.00
5.4.290.0760.02515.20
5.4.280.1040.02715.16
5.4.270.1120.02515.08
5.4.260.1150.02115.12
5.4.250.0880.02415.18
5.4.240.0960.02515.02
5.4.230.0930.02215.00
5.4.220.0420.02315.12
5.4.210.0090.02115.12
5.4.200.0090.01815.01
5.4.190.0780.01815.17
5.4.180.0980.02015.20
5.4.170.1020.02215.06
5.4.160.0970.02115.20
5.4.150.1030.01815.11
5.4.140.1040.01813.84
5.4.130.1040.01813.74
5.4.120.1100.02213.92
5.4.110.1040.02513.77
5.4.100.1160.02713.87
5.4.90.1030.02213.86
5.4.80.0210.02513.67
5.4.70.0060.04113.84
5.4.60.0210.02613.75
5.4.50.0300.03113.83
5.4.40.0150.02813.84
5.4.30.0230.02213.85
5.4.20.0240.02313.76
5.4.10.0230.02513.84
5.4.00.0190.03413.48
5.3.290.0160.02212.88
5.3.280.0180.02812.96
5.3.270.0210.02012.85
5.3.260.0140.04012.93
5.3.250.0180.02912.84
5.3.240.0180.02812.90
5.3.230.0180.02112.84
5.3.220.0200.01812.90
5.3.210.0120.02412.82
5.3.200.0120.02212.84
5.3.190.0130.02512.83
5.3.180.0100.02212.93
5.3.170.0170.02312.88
5.3.160.0120.02612.83
5.3.150.0140.02112.87
5.3.140.0280.02012.88
5.3.130.0280.02912.90
5.3.120.0140.02512.87
5.3.110.0130.02512.91
5.3.100.0260.02512.56
5.3.90.0300.02512.66
5.3.80.0210.01812.56
5.3.70.0210.02212.55
5.3.60.0190.01512.55
5.3.50.0220.03712.62
5.3.40.0230.02112.51
5.3.30.0200.03012.55
5.3.20.0180.01812.51
5.3.10.0220.02212.37
5.3.00.0220.02012.52
5.2.170.0140.01811.21
5.2.160.0180.01511.24
5.2.150.0290.02511.13
5.2.140.0140.02111.13
5.2.130.0060.02011.25
5.2.120.0190.01311.11
5.2.110.0120.01711.26
5.2.100.0140.01311.15
5.2.90.0100.02311.10
5.2.80.0070.02111.10
5.2.70.0100.02211.16
5.2.60.0150.01911.15
5.2.50.0110.03211.06
5.2.40.0100.02011.20
5.2.30.0230.01711.08
5.2.20.0200.01311.11
5.2.10.0090.01611.06
5.2.00.0130.01510.95
5.1.60.0110.02410.54
5.1.50.0090.02310.65
5.1.40.0080.01910.62
5.1.30.0120.01810.71
5.1.20.0060.01810.72
5.1.10.0070.01710.66
5.1.00.0110.01310.57
5.0.50.0080.0219.83
5.0.40.0050.0159.80
5.0.30.0050.0169.76
5.0.20.0050.0109.65
5.0.10.0090.0109.64
5.0.00.0050.0179.61
4.4.90.0110.0089.52
4.4.80.0070.0209.52
4.4.70.0030.0099.52
4.4.60.0050.0109.52
4.4.50.0040.0109.52
4.4.40.0060.0219.52
4.4.30.0060.0109.52
4.4.20.0050.0169.52
4.4.10.0080.0069.52
4.4.00.0020.0189.52
4.3.110.0040.0109.52
4.3.100.0060.0089.52
4.3.90.0070.0089.52
4.3.80.0060.0189.52
4.3.70.0050.0109.52
4.3.60.0050.0099.52
4.3.50.0050.0109.52
4.3.40.0040.0169.52
4.3.30.0020.0199.52
4.3.20.0020.0209.52
4.3.10.0020.0109.52
4.3.00.0050.0149.52

preferences:
64.4 ms | 401 KiB | 5 Q