3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Comparable { function compare(self $compare); } class Foo implements Comparable { function compare(Comparable $compare) {} } class Bar implements Comparable { function compare(Comparable $compare) {} } $foo = new Foo(); $bar = new Bar(); $foo->compare($foo); $bar->compare($bar);

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.70.0150.00016.63
8.3.60.0140.00018.43
8.3.50.0130.00822.03
8.3.40.0040.01118.56
8.3.30.0110.00418.67
8.3.20.0150.00018.58
8.3.10.0140.00420.79
8.3.00.0070.00021.85
8.2.180.0040.01116.50
8.2.170.0100.00722.96
8.2.160.0100.00320.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00421.07
8.2.110.0040.00722.13
8.2.100.0070.00417.72
8.2.90.0000.00819.06
8.2.80.0040.00417.97
8.2.70.0100.00317.12
8.2.60.0080.00017.93
8.2.50.0120.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00721.27
8.2.20.0000.00717.57
8.2.10.0050.00317.59
8.2.00.0000.00917.60
8.1.280.0070.01125.92
8.1.270.0060.00323.99
8.1.260.0060.00626.35
8.1.250.0040.00428.09
8.1.240.0080.00420.81
8.1.230.0080.00320.85
8.1.220.0040.00418.77
8.1.210.0000.00918.91
8.1.200.0030.00617.35
8.1.190.0000.00817.53
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0000.00718.77
8.1.150.0040.00718.63
8.1.140.0040.00417.38
8.1.130.0030.00317.79
8.1.120.0050.00317.39
8.1.110.0030.00317.52
8.1.100.0000.00717.48
8.1.90.0050.00317.44
8.1.80.0000.00717.40
8.1.70.0000.00717.49
8.1.60.0080.00317.49
8.1.50.0000.00717.52
8.1.40.0040.00417.47
8.1.30.0000.00817.61
8.1.20.0000.00817.57
8.1.10.0040.00417.42
8.1.00.0030.00517.46
8.0.300.0050.00219.74
8.0.290.0030.00317.16
8.0.280.0040.00418.43
8.0.270.0030.00317.27
8.0.260.0070.00016.90
8.0.250.0000.00717.04
8.0.240.0040.00417.07
8.0.230.0040.00417.07
8.0.220.0080.00016.95
8.0.210.0000.00716.96
8.0.200.0030.00316.92
8.0.190.0050.00216.89
8.0.180.0000.00716.95
8.0.170.0030.00316.87
8.0.160.0050.00216.98
8.0.150.0000.00716.97
8.0.140.0000.00716.93
8.0.130.0030.00513.40
8.0.120.0040.00416.90
8.0.110.0000.00716.85
8.0.100.0070.00016.96
8.0.90.0040.00417.00
8.0.80.0090.00816.94
8.0.70.0040.00316.84
8.0.60.0000.00717.01
8.0.50.0080.00017.03
8.0.30.0100.00917.22
8.0.20.0090.01117.40
8.0.10.0000.00717.02
8.0.00.0120.00816.82
7.4.330.0000.00516.79
7.4.320.0030.00316.64
7.4.300.0040.00416.53
7.4.290.0000.00716.50
7.4.280.0040.00416.65
7.4.270.0000.00816.41
7.4.260.0000.00513.32
7.4.250.0000.00816.34
7.4.240.0070.00016.65
7.4.230.0030.00316.69
7.4.220.0090.01016.61
7.4.210.0080.00716.56
7.4.200.0030.00316.43
7.4.190.0040.00416.66
7.4.160.0110.00416.51
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0120.00816.44
7.4.120.0150.00116.57
7.4.110.0160.00616.27
7.4.100.0120.00616.61
7.4.90.0090.00916.57
7.4.80.0070.01019.39
7.4.70.0040.01416.62
7.4.60.0090.00916.56
7.4.50.0090.00016.36
7.4.40.0060.00922.77
7.4.30.0100.00716.38
7.4.00.0060.00915.02
7.3.330.0000.00513.22
7.3.320.0060.00613.11
7.3.310.0040.00416.14
7.3.300.0060.00016.21
7.3.290.0060.01216.20
7.3.280.0110.00816.24
7.3.270.0120.00617.40
7.3.260.0110.00818.24
7.3.250.0150.00916.21
7.3.240.0040.01216.10
7.3.230.0070.01016.39
7.3.210.0100.00716.47
7.3.200.0100.01019.39
7.3.190.0030.02016.18
7.3.180.0090.01316.22
7.3.170.0100.00616.30
7.3.160.0060.01016.48
7.3.120.0030.01014.48
7.3.110.0030.01014.68
7.3.100.0060.00314.84
7.3.90.0030.01014.76
7.3.80.0040.01114.95
7.3.70.0080.00014.72
7.3.60.0070.00714.51
7.3.50.0060.00914.52
7.3.40.0060.00614.79
7.3.30.0060.00814.82
7.3.20.0040.00416.59
7.3.10.0000.00916.37
7.3.00.0090.00616.54
7.2.330.0100.00716.66
7.2.320.0090.01216.43
7.2.310.0070.01116.52
7.2.300.0150.00316.43
7.2.290.0090.00916.77
7.2.240.0080.00814.81
7.2.230.0000.01314.86
7.2.220.0000.00915.13
7.2.210.0070.00414.71
7.2.200.0040.01514.89
7.2.190.0120.00614.84
7.2.180.0070.00714.85
7.2.170.0000.01814.75
7.2.160.0060.00615.06
7.2.150.0000.01616.92
7.2.140.0070.01016.71
7.2.130.0060.00616.87
7.2.120.0140.00716.83
7.2.110.0140.00616.52
7.2.100.0060.01016.72
7.2.90.0000.01816.73
7.2.80.0060.01016.91
7.2.70.0030.01316.75
7.2.60.0080.00916.84
7.2.50.0080.00816.59
7.2.40.0130.00316.54
7.2.30.0070.01016.71
7.2.20.0100.00316.80
7.2.10.0040.01116.53
7.2.00.0050.01018.19
7.1.330.0130.00015.68
7.1.320.0070.00715.79
7.1.310.0040.00415.75
7.1.300.0000.01015.40
7.1.290.0120.00015.58
7.1.280.0060.00315.63
7.1.270.0000.01215.63
7.1.260.0040.01115.77
7.1.250.0050.01315.88
7.1.200.0060.00315.84
7.1.100.0060.00917.77
7.1.70.0040.00417.09
7.1.60.0110.01419.40
7.1.50.0130.01016.93
7.1.00.0030.07722.29
7.0.200.0000.00716.73
7.0.140.0070.07021.97
7.0.60.0070.09019.86
7.0.50.0070.06017.94
7.0.40.0100.07020.06
7.0.30.0300.08020.21
7.0.20.0100.04720.30
7.0.10.0030.08720.10
7.0.00.0100.08720.30
5.6.280.0030.06021.15
5.6.210.0030.09020.67
5.6.200.0130.07018.19
5.6.190.0130.08320.46
5.6.180.0070.05720.63
5.6.170.0200.04720.52
5.6.160.0030.04320.46
5.6.150.0100.07718.29
5.6.140.0030.08318.29
5.6.130.0030.05318.15
5.6.120.0070.08720.98
5.6.110.0030.08721.14
5.6.100.0100.06321.04
5.6.90.0100.09020.97
5.6.80.0200.04720.51
5.5.350.4230.04720.43
5.5.340.0100.03717.95
5.5.330.0170.07020.37
5.5.320.0500.07320.25
5.5.310.0400.06320.36
5.5.300.0070.08018.08
5.5.290.0130.08018.07
5.5.280.0200.07020.89
5.5.270.0230.06020.88
5.5.260.0130.04720.65
5.5.250.0100.06020.71
5.5.240.0070.08020.12
5.4.450.0330.04019.36
5.4.440.0370.03319.55
5.4.430.0370.03319.64
5.4.420.0370.04019.46
5.4.410.0370.03319.29
5.4.400.0370.04018.98
5.4.390.0370.03718.96
5.4.380.0330.04318.85
5.4.370.0300.04018.90
5.4.360.0300.04018.88
5.4.350.0330.04019.16
5.4.340.0370.04019.20
5.4.320.0300.04318.98
5.4.310.0400.03319.31
5.4.300.0330.04019.09
5.4.290.0400.03319.22
5.4.280.0370.03719.19
5.4.270.0430.06719.16
5.4.260.0300.04319.24
5.4.250.0430.05719.21
5.4.240.0330.03718.93
5.4.230.0430.06319.23
5.4.220.0370.04019.11
5.4.210.0170.07319.13
5.4.200.0170.04018.94
5.4.190.0370.04019.30
5.4.180.0300.04019.08
5.4.170.0400.03718.86
5.4.160.0430.03719.28
5.4.150.0400.05019.13
5.4.140.0430.06016.43
5.4.130.0470.06316.37
5.4.120.0430.05016.37
5.4.110.0430.03316.52
5.4.100.0470.05716.59
5.4.90.0370.03316.50
5.4.80.0370.03716.23
5.4.70.0370.07016.60
5.4.60.0430.04016.39
5.4.50.0270.04016.43
5.4.40.0370.03016.25
5.4.30.0400.05316.53
5.4.20.0430.04316.55
5.4.10.0400.03316.50
5.4.00.0300.03715.80
5.3.290.0330.05314.64
5.3.280.0300.04714.50
5.3.270.0430.06314.53
5.3.260.0370.04014.53
5.3.250.0430.06314.53
5.3.240.0470.06314.59
5.3.230.0470.05314.62
5.3.220.0330.04314.47
5.3.210.0370.04014.65
5.3.200.0400.03714.54
5.3.190.0400.07314.59
5.3.180.0400.04714.54
5.3.170.0370.04314.46
5.3.160.0300.04014.55
5.3.150.0470.06014.55
5.3.140.0430.04714.57
5.3.130.0400.05714.64
5.3.120.0370.05714.60
5.3.110.0430.03314.52
5.3.100.0430.03314.01
5.3.90.0330.04013.99
5.3.80.0330.03714.07
5.3.70.0300.04013.93
5.3.60.0430.04714.11
5.3.50.0370.04314.03
5.3.40.0370.03713.96
5.3.30.0300.03713.95
5.3.20.0370.03313.78
5.3.10.0370.03013.57
5.3.00.0370.03313.87
5.2.170.0430.02011.16
5.2.160.0370.03011.06
5.2.150.0330.03011.38
5.2.140.0270.03311.07
5.2.130.0300.03711.12
5.2.120.0230.03311.07
5.2.110.0200.03711.04
5.2.100.0230.03711.27
5.2.90.0270.03011.01
5.2.80.0330.02311.00
5.2.70.0230.03311.03
5.2.60.0430.04711.06
5.2.50.0070.02310.93
5.2.40.0030.03010.91
5.2.30.0030.02711.06
5.2.20.0000.03011.05
5.2.10.2230.03310.84
5.2.00.2070.02710.64
5.1.60.2100.0209.90
5.1.50.2030.0279.98
5.1.40.2170.0209.88
5.1.30.2100.02310.50
5.1.20.2100.02310.29
5.1.10.2370.03310.13
5.1.00.2100.0209.98
5.0.50.1070.0179.76
5.0.40.1070.0209.76
5.0.30.1030.0309.76
5.0.20.1170.0239.76
5.0.10.1370.0079.76
5.0.00.1130.0279.76
4.4.90.0130.0179.76
4.4.80.0000.0139.76
4.4.70.0030.0139.76
4.4.60.0900.0179.76
4.4.50.1070.0139.76
4.4.40.1100.0309.76
4.4.30.1030.0139.76
4.4.20.1030.0139.76
4.4.10.1030.0139.76
4.4.00.1030.0279.76
4.3.110.1230.0209.76
4.3.100.1070.0139.76
4.3.90.1300.0179.76
4.3.80.1030.0239.76
4.3.70.1170.0139.76
4.3.60.1030.0139.76
4.3.50.0970.0209.76
4.3.40.1200.0309.76
4.3.30.0670.0239.76
4.3.20.0730.0279.76
4.3.10.0530.0179.76
4.3.00.0530.0179.76

preferences:
39.69 ms | 401 KiB | 5 Q