3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Comparable { public function compare(self $compare); } // Which is then implemented: class Foo implements Comparable { public function compare(Comparable $compare) {} }

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.40.0090.00618.71
8.3.30.0070.00718.93
8.3.20.0070.00020.07
8.3.10.0050.00323.68
8.3.00.0040.00420.68
8.2.170.0070.00722.96
8.2.160.0090.00620.11
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00020.75
8.2.110.0030.00720.96
8.2.100.0040.00817.72
8.2.90.0080.00017.78
8.2.80.0060.00317.97
8.2.70.0000.00817.38
8.2.60.0060.00617.66
8.2.50.0030.00618.07
8.2.40.0080.00019.88
8.2.30.0060.00318.12
8.2.20.0030.00519.37
8.2.10.0000.00717.94
8.2.00.0000.00717.61
8.1.270.0050.00323.91
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0050.00522.19
8.1.230.0090.00322.73
8.1.220.0000.00817.74
8.1.210.0040.00419.80
8.1.200.0030.00617.23
8.1.190.0040.00417.00
8.1.180.0090.00018.10
8.1.170.0000.00918.59
8.1.160.0070.00022.02
8.1.150.0070.00018.54
8.1.140.0050.00217.38
8.1.130.0050.00517.75
8.1.120.0000.00717.31
8.1.110.0030.00617.35
8.1.100.0070.00017.28
8.1.90.0000.00717.43
8.1.80.0050.00217.29
8.1.70.0000.00817.33
8.1.60.0040.00417.55
8.1.50.0080.00017.49
8.1.40.0030.00617.50
8.1.30.0040.00417.64
8.1.20.0000.00717.60
8.1.10.0040.00417.45
8.1.00.0000.00717.31
8.0.300.0050.00320.15
8.0.290.0040.00416.63
8.0.280.0070.00018.26
8.0.270.0070.00017.22
8.0.260.0030.00317.13
8.0.250.0030.00316.94
8.0.240.0000.00716.77
8.0.230.0070.00016.86
8.0.220.0000.00716.71
8.0.210.0040.00416.79
8.0.200.0000.00816.77
8.0.190.0070.00016.78
8.0.180.0040.00416.77
8.0.170.0090.00016.81
8.0.160.0030.00416.78
8.0.150.0030.00616.78
8.0.140.0050.00316.73
8.0.130.0000.00513.29
8.0.120.0040.00416.71
8.0.110.0050.00316.73
8.0.100.0000.00716.82
8.0.90.0050.00316.62
8.0.80.0060.01516.87
8.0.70.0040.00416.81
8.0.60.0050.00216.66
8.0.50.0080.00016.71
8.0.30.0120.00817.07
8.0.20.0100.00717.40
8.0.10.0050.00216.79
8.0.00.0030.01616.60
7.4.330.0000.00515.03
7.4.320.0040.00416.49
7.4.300.0030.00316.52
7.4.290.0040.00416.54
7.4.280.0040.00416.38
7.4.270.0070.00016.52
7.4.260.0000.00716.40
7.4.250.0000.00716.42
7.4.240.0030.00416.53
7.4.230.0040.00416.59
7.4.220.0030.02116.63
7.4.210.0080.00616.52
7.4.200.0040.00416.31
7.4.160.0100.01416.56
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0070.01016.45
7.4.120.0160.00116.48
7.4.110.0090.01316.40
7.4.100.0160.00916.56
7.4.90.0140.00316.47
7.4.80.0140.00819.39
7.4.70.0070.01016.63
7.4.60.0070.01016.39
7.4.50.0000.00416.51
7.4.40.0070.01516.34
7.4.30.0140.00816.27
7.4.10.0110.00714.82
7.4.00.0060.01014.86
7.3.330.0050.00013.15
7.3.320.0000.00513.16
7.3.310.0000.00716.06
7.3.300.0000.00816.11
7.3.290.0110.00516.14
7.3.280.0060.01016.22
7.3.270.0060.01217.40
7.3.260.0070.01016.33
7.3.250.0130.00916.19
7.3.240.0060.01716.46
7.3.230.0150.00816.39
7.3.210.0070.01116.12
7.3.200.0190.00019.39
7.3.190.0100.01316.49
7.3.180.0150.00016.16
7.3.170.0060.01216.37
7.3.160.0130.00616.18
7.3.130.0060.01214.94
7.3.120.0030.01214.77
7.3.110.0070.01114.80
7.3.100.0070.00714.68
7.3.90.0070.01014.69
7.3.80.0070.01014.86
7.3.70.0070.00314.73
7.3.60.0110.00414.70
7.3.50.0070.00714.66
7.3.40.0120.00014.34
7.3.30.0090.00614.45
7.3.20.0070.00716.41
7.3.10.0050.01116.62
7.3.00.0020.00816.66
7.2.330.0150.00316.23
7.2.320.0030.01516.39
7.2.310.0150.00616.46
7.2.300.0100.00716.33
7.2.290.0070.01016.23
7.2.260.0060.00914.45
7.2.250.0090.00514.69
7.2.240.0000.01214.91
7.2.230.0090.00614.98
7.2.220.0040.00714.96
7.2.210.0060.00614.63
7.2.200.0030.01015.06
7.2.190.0030.01314.70
7.2.180.0100.00314.96
7.2.170.0090.00315.00
7.2.160.0110.00314.91
7.2.150.0030.00816.63
7.2.140.0070.00716.86
7.2.130.0050.00916.60
7.2.120.0030.01116.88
7.2.110.0060.00716.69
7.2.100.0070.00316.65
7.2.90.0080.00716.71
7.2.80.0060.00816.48
7.2.70.0070.00516.82
7.2.60.0090.00516.71
7.2.50.0040.01116.75
7.2.40.0070.00616.76
7.2.30.0050.00716.73
7.2.20.0060.00816.66
7.2.10.0090.00516.73
7.2.00.0050.01116.69
7.1.330.0070.00515.73
7.1.320.0060.00915.77
7.1.310.0060.00615.34
7.1.300.0060.00615.64
7.1.290.0000.01415.70
7.1.280.0000.01515.33
7.1.270.0030.01015.55
7.1.260.0080.00315.71
7.1.250.0040.00815.61
7.1.240.0040.00715.73
7.1.230.0070.00715.42
7.1.220.0040.00815.61
7.1.210.0060.00915.70
7.1.200.0080.00615.73
7.1.190.0040.01115.53
7.1.180.0090.00015.63
7.1.170.0030.00615.35
7.1.160.0000.01015.70
7.1.150.0000.01515.51
7.1.140.0060.00315.54
7.1.130.0050.00915.51
7.1.120.0060.00315.72
7.1.110.0040.00715.61
7.1.100.0100.00416.95
7.1.90.0030.01015.41
7.1.80.0000.01315.70
7.1.70.0060.00516.23
7.1.60.0090.00717.78
7.1.50.0050.01116.23
7.1.40.0030.01015.51
7.1.30.0060.00915.57
7.1.20.0070.00315.53
7.1.10.0060.00615.73
7.1.00.0060.04218.85
7.0.330.0040.01115.25
7.0.320.0040.00715.27
7.0.310.0040.00415.16
7.0.300.0110.00415.28
7.0.290.0070.00715.43
7.0.280.0060.00315.21
7.0.270.0040.01115.14
7.0.260.0000.01215.21
7.0.250.0070.00715.28
7.0.240.0030.00715.25
7.0.230.0000.01315.49
7.0.220.0030.00615.29
7.0.210.0060.01015.39
7.0.200.0070.00515.96
7.0.190.0000.01415.10
7.0.180.0090.00415.51
7.0.170.0030.00615.40
7.0.160.0030.00615.29
7.0.150.0090.00315.29
7.0.140.0100.03218.52
7.0.130.0070.00715.32
7.0.120.0070.00715.23
7.0.110.0030.01015.38
7.0.100.0110.04117.66
7.0.90.0140.03517.49
7.0.80.0100.04317.57
7.0.70.0050.03017.64
7.0.60.0080.04517.68
7.0.50.0030.04817.92
7.0.40.0050.04616.80
7.0.30.0050.04716.68
7.0.20.0050.04716.57
7.0.10.0070.03716.60
7.0.00.0070.04716.77
5.6.400.0030.01014.33
5.6.390.0040.01114.41
5.6.380.0030.01313.93
5.6.370.0000.00914.16
5.6.360.0060.00614.56
5.6.350.0060.00914.38
5.6.340.0030.00614.29
5.6.330.0080.00814.13
5.6.320.0000.00913.85
5.6.310.0070.00313.96
5.6.300.0030.01014.34
5.6.290.0060.00914.14
5.6.280.0090.03417.43
5.6.270.0090.00014.25
5.6.260.0060.00614.20
5.6.250.0020.04417.39
5.6.240.0070.03017.48
5.6.230.0100.04017.38
5.6.220.0050.04517.38
5.6.210.0050.04817.40
5.6.200.0100.04517.59
5.6.190.0060.04417.64
5.6.180.0050.04417.56
5.6.170.0070.03017.57
5.6.160.0120.03917.56
5.6.150.0120.04017.56
5.6.140.0100.04017.65
5.6.130.0130.04017.71
5.6.120.0020.04917.56
5.6.110.0140.04017.71
5.6.100.0050.03517.52
5.6.90.0070.04617.60
5.6.80.0100.03217.41
5.6.70.0100.03917.30
5.6.60.0060.02617.26
5.6.50.0080.04017.37
5.6.40.0110.04217.33
5.6.30.0050.04317.35
5.6.20.0070.04117.26
5.6.10.0050.04517.25
5.6.00.0080.04217.23
5.5.380.0100.04517.27
5.5.370.0050.04617.16
5.5.360.0110.04017.26
5.5.350.0030.03117.14
5.5.340.0070.04317.37
5.5.330.0080.03117.42
5.5.320.0070.04417.43
5.5.310.0100.04017.34
5.5.300.0070.04017.27
5.5.290.0070.04317.48
5.5.280.0060.04117.54
5.5.270.0080.04717.20
5.5.260.0080.04517.50
5.5.250.0050.02517.27
5.5.240.0130.03217.13
5.5.230.0070.04417.02
5.5.220.0100.03717.07
5.5.210.0090.04017.12
5.5.200.0010.04217.06
5.5.190.0070.03917.13
5.5.180.0120.03216.96
5.5.170.0060.00913.80
5.5.160.0050.04317.03
5.5.150.0070.04217.09
5.5.140.0060.04617.19
5.5.130.0080.03717.08
5.5.120.0080.03717.12
5.5.110.0040.03917.00
5.5.100.0070.02016.83
5.5.90.0080.03816.96
5.5.80.0030.04417.01
5.5.70.0020.04716.79
5.5.60.0060.03317.11
5.5.50.0050.04417.17
5.5.40.0170.03317.07
5.5.30.0080.04016.89
5.5.20.0100.04216.96
5.5.10.0080.04116.98
5.5.00.0050.03517.15
5.4.450.0110.03915.12
5.4.440.0050.04614.99
5.4.430.0000.04015.17
5.4.420.0060.04515.15
5.4.410.0070.04014.92
5.4.400.0080.03714.95
5.4.390.0070.04114.79
5.4.380.0090.03114.78
5.4.370.0070.03715.06
5.4.360.0050.04014.84
5.4.350.0030.02915.06
5.4.340.0060.03814.92
5.4.330.0080.00011.04
5.4.320.0040.04114.93
5.4.310.0060.03915.00
5.4.300.0100.03714.98
5.4.290.0070.04214.94
5.4.280.0120.02015.02
5.4.270.0100.02514.99
5.4.260.0030.04214.85
5.4.250.0080.03314.98
5.4.240.0110.03414.95
5.4.230.0080.03614.87
5.4.220.0070.04114.80
5.4.210.0090.03715.02
5.4.200.0100.03814.80
5.4.190.0070.04214.82
5.4.180.0100.03315.10
5.4.170.0080.03614.87
5.4.160.0050.04314.83
5.4.150.0050.03614.76
5.4.140.0050.03513.50
5.4.130.0050.03913.74
5.4.120.0030.04213.64
5.4.110.0040.04013.59
5.4.100.0090.03013.60
5.4.90.0070.03913.61
5.4.80.0040.03013.64
5.4.70.0030.04113.62
5.4.60.0060.03613.62
5.4.50.0110.03613.43
5.4.40.0070.03813.66
5.4.30.0050.04413.59
5.4.20.0080.03813.58
5.4.10.0060.04013.58
5.4.00.0050.03813.31
5.3.290.0050.03112.50
5.3.280.0050.04012.36
5.3.270.0070.03312.57
5.3.260.0070.03612.47
5.3.250.0080.03812.35
5.3.240.0040.03012.37
5.3.230.0020.03112.36
5.3.220.0030.04312.46
5.3.210.0030.03012.33
5.3.200.0060.04112.38
5.3.190.0030.04112.40
5.3.180.0030.04012.46
5.3.170.0100.03712.45
5.3.160.0070.04112.49
5.3.150.0030.03912.49
5.3.140.0050.03712.54
5.3.130.0070.04012.31
5.3.120.0090.03812.46
5.3.110.0060.03812.36
5.3.100.0050.03512.10
5.3.90.0060.03812.15
5.3.80.0090.03812.05
5.3.70.0050.03712.18
5.3.60.0030.02812.17
5.3.50.0030.03712.01
5.3.40.0050.04212.15
5.3.30.0050.04312.01
5.3.20.0030.03812.05
5.3.10.0020.04311.91
5.3.00.0030.04211.95
5.2.170.0170.04311.14
5.2.160.0100.06011.15
5.2.150.0100.04711.01
5.2.140.0030.06311.20
5.2.130.0100.05711.00
5.2.120.0030.06011.11
5.2.110.0100.06011.03
5.2.100.0030.03711.09
5.2.90.0070.05711.16
5.2.80.0030.04311.16
5.2.70.0100.06011.15
5.2.60.0100.06011.14
5.2.50.0100.05711.02
5.2.40.0030.06711.11
5.2.30.0070.05711.01
5.2.20.0030.04010.87
5.2.10.0000.05310.96
5.2.00.0030.06310.63
5.1.60.0070.04310.53
5.1.50.0070.05310.53
5.1.40.0030.04310.53
5.1.30.0030.05710.53
5.1.20.0070.05710.53
5.1.10.0130.04710.53
5.1.00.0030.04710.53
5.0.50.0030.04710.53
5.0.40.0000.03010.53
5.0.30.0000.06710.53
5.0.20.0030.03310.53
5.0.10.0000.05010.53
5.0.00.0000.05010.53
4.4.90.0030.03010.53
4.4.80.0030.03310.53
4.4.70.0000.04010.53
4.4.60.0000.03710.53
4.4.50.0000.03710.53
4.4.40.0000.05710.53
4.4.30.0070.02710.53
4.4.20.0030.03710.53
4.4.10.0000.03710.53
4.4.00.0030.05010.53
4.3.110.0070.03310.53
4.3.100.0070.03010.53
4.3.90.0030.03710.53
4.3.80.0000.05710.53
4.3.70.0030.03310.53
4.3.60.0030.03310.53
4.3.50.0030.03010.53
4.3.40.0000.05710.53
4.3.30.0070.03010.53
4.3.20.0000.03710.53
4.3.10.0000.03710.53
4.3.00.0030.03010.53

preferences:
46.69 ms | 400 KiB | 5 Q