3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function compare(self $object); } class A implements I { public function compare(I $aObject) { return true; } } class B implements I { public function compare(self $bObject) { return true; } } class C extends A { public function compare(self $bObject) { return true; } } $a = new A(); $b = new B(); $c = new C(); $a->compare($a); $a->compare($b); $a->compare($c);

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.0070.00718.84
8.3.30.0080.00818.51
8.3.20.0060.00318.77
8.3.10.0050.00320.95
8.3.00.0080.00023.40
8.2.170.0060.00922.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0030.00626.16
8.2.120.0000.00819.54
8.2.110.0060.00320.48
8.2.100.0000.01117.78
8.2.90.0000.00719.05
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00719.32
8.2.20.0050.00317.58
8.2.10.0070.00017.63
8.2.00.0060.00317.62
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0000.01028.09
8.1.240.0060.00322.47
8.1.230.0080.00320.96
8.1.220.0050.00318.77
8.1.210.0030.00518.91
8.1.200.0090.00017.23
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0050.00318.40
8.1.160.0000.00718.70
8.1.150.0050.00318.54
8.1.140.0040.00417.37
8.1.130.0000.00617.64
8.1.120.0000.00817.42
8.1.110.0070.00317.41
8.1.100.0000.00717.35
8.1.90.0000.00817.36
8.1.80.0030.00317.39
8.1.70.0060.00317.41
8.1.60.0000.00817.41
8.1.50.0050.00317.32
8.1.40.0000.00817.45
8.1.30.0030.00617.56
8.1.20.0040.00417.49
8.1.10.0020.00517.36
8.1.00.0040.00417.23
8.0.300.0050.00319.77
8.0.290.0040.00417.16
8.0.280.0030.00318.38
8.0.270.0080.00017.18
8.0.260.0030.00316.77
8.0.250.0070.00016.94
8.0.240.0000.00816.84
8.0.230.0070.00016.92
8.0.220.0030.00616.80
8.0.210.0030.00316.91
8.0.200.0060.00316.99
8.0.190.0070.00016.98
8.0.180.0040.00416.95
8.0.170.0000.00716.83
8.0.160.0080.00017.01
8.0.150.0000.00716.80
8.0.140.0070.00016.83
8.0.130.0060.00313.28
8.0.120.0000.00716.89
8.0.110.0000.00716.91
8.0.100.0050.00416.96
8.0.90.0040.00416.89
8.0.80.0000.01416.94
8.0.70.0040.00416.96
8.0.60.0040.00416.87
8.0.50.0030.00316.80
8.0.30.0120.00616.99
8.0.20.0150.00217.40
8.0.10.0070.00016.82
8.0.00.0120.00716.62
7.4.330.0030.00314.67
7.4.320.0070.00016.53
7.4.300.0000.00716.42
7.4.290.0030.00316.38
7.4.280.0030.00316.38
7.4.270.0060.00016.44
7.4.260.0000.00513.16
7.4.250.0040.00416.44
7.4.240.0030.00316.43
7.4.230.0030.00316.24
7.4.220.0060.01316.41
7.4.210.0100.00816.49
7.4.200.0040.00416.63
7.4.190.0040.00416.50
7.4.160.0080.00816.52
7.4.150.0120.00617.40
7.4.140.0050.01217.86
7.4.130.0070.00916.59
7.4.120.0130.00416.48
7.4.110.0080.01116.60
7.4.100.0160.00316.23
7.4.90.0100.00716.38
7.4.80.0100.00719.37
7.4.70.0110.00616.39
7.4.60.0120.00916.44
7.4.50.0040.00416.50
7.4.40.0070.01122.52
7.4.30.0040.01216.53
7.4.10.0060.01214.81
7.4.00.0100.00614.81
7.3.330.0000.00513.22
7.3.320.0030.00313.26
7.3.310.0030.00316.27
7.3.300.0000.00716.18
7.3.290.0070.00716.23
7.3.280.0080.00916.25
7.3.270.0150.00717.40
7.3.260.0070.01118.24
7.3.250.0060.01016.44
7.3.240.0170.00316.41
7.3.230.0160.00716.39
7.3.210.0080.00816.16
7.3.200.0110.00519.39
7.3.190.0040.01116.23
7.3.180.0110.00816.23
7.3.170.0060.00916.51
7.3.160.0160.00716.35
7.3.130.0070.01114.51
7.3.120.0090.00814.59
7.3.110.0070.00814.73
7.3.100.0050.01114.76
7.3.90.0100.00214.85
7.3.80.0090.00314.67
7.3.70.0100.00314.61
7.3.60.0070.00714.65
7.3.50.0020.01014.82
7.3.40.0040.00614.76
7.3.30.0040.00814.66
7.3.20.0080.00516.55
7.3.10.0050.00616.29
7.3.00.0050.00916.46
7.2.330.0160.00816.55
7.2.320.0110.00616.57
7.2.310.0070.01116.41
7.2.300.0030.01316.66
7.2.290.0090.00916.55
7.2.260.0060.01014.87
7.2.250.0060.00614.71
7.2.240.0030.01314.97
7.2.230.0070.00714.89
7.2.220.0080.00514.78
7.2.210.0030.01014.83
7.2.200.0110.00314.65
7.2.190.0020.00714.84
7.2.180.0020.01014.82
7.2.170.0070.00614.87
7.2.160.0030.01214.66
7.2.150.0040.00716.62
7.2.140.0060.00516.57
7.2.130.0100.00516.62
7.2.120.0070.00716.70
7.2.110.0110.00316.66
7.2.100.0080.00516.73
7.2.90.0080.00516.71
7.2.80.0080.00316.70
7.2.70.0080.00716.72
7.2.60.0080.00616.71
7.2.50.0050.00916.69
7.2.40.0050.00616.76
7.2.30.0100.00716.62
7.2.20.0060.01016.81
7.2.10.0030.00816.76
7.2.00.0050.00917.43
7.1.330.0080.00515.40
7.1.320.0050.00915.65
7.1.310.0050.00615.74
7.1.300.0050.00715.47
7.1.290.0040.00815.47
7.1.280.0050.00715.42
7.1.270.0020.00515.52
7.1.260.0050.01115.41
7.1.250.0060.00615.56
7.1.240.0000.00915.44
7.1.230.0040.00415.58
7.1.220.0050.00315.63
7.1.210.0040.00815.63
7.1.200.0060.00615.57
7.1.190.0070.00415.61
7.1.180.0040.00715.54
7.1.170.0090.00615.70
7.1.160.0070.00315.76
7.1.150.0070.00715.70
7.1.140.0000.01015.79
7.1.130.0000.01115.58
7.1.120.0090.00615.72
7.1.110.0070.00315.87
7.1.100.0070.00516.90
7.1.90.0030.00715.63
7.1.80.0000.01215.69
7.1.70.0050.00816.28
7.1.60.0040.01217.51
7.1.50.0050.01416.14
7.1.40.0030.00715.68
7.1.30.0060.00615.81
7.1.20.0060.01015.85
7.1.10.0030.00515.72
7.1.00.0020.04219.04
7.0.330.0070.00715.11
7.0.320.0040.00815.36
7.0.310.0030.00815.37
7.0.300.0060.00915.20
7.0.290.0000.01215.24
7.0.280.0030.00915.24
7.0.270.0030.00715.07
7.0.260.0000.01214.97
7.0.250.0080.00015.34
7.0.240.0000.01115.13
7.0.230.0030.00615.10
7.0.220.0100.00315.18
7.0.210.0060.00615.43
7.0.200.0010.00615.88
7.0.190.0040.00715.05
7.0.180.0050.00315.28
7.0.170.0070.00715.05
7.0.160.0080.00015.29
7.0.150.0110.00015.05
7.0.140.0020.04018.67
7.0.130.0040.00415.35
7.0.120.0060.00615.34
7.0.110.0000.01315.46
7.0.100.0080.00315.31
7.0.90.0000.00915.34
7.0.80.0030.00815.41
7.0.70.0040.00415.29
7.0.60.0030.04518.54
7.0.50.0050.03818.73
7.0.40.0050.03816.60
7.0.30.0080.03116.57
7.0.20.0070.03016.76
7.0.10.0040.02416.80
7.0.00.0040.02516.74
5.6.400.0070.00313.99
5.6.390.0030.01014.34
5.6.380.0030.00914.15
5.6.370.0090.00614.07
5.6.360.0070.00314.06
5.6.350.0100.00014.36
5.6.340.0040.01114.01
5.6.330.0000.01413.96
5.6.320.0040.00814.26
5.6.310.0090.00313.98
5.6.300.0000.00914.50
5.6.290.0070.00714.37
5.6.280.0100.03517.54
5.6.270.0110.00014.00
5.6.260.0000.00814.09
5.6.250.0080.00314.25
5.6.240.0040.01214.12
5.6.230.0030.01014.36
5.6.220.0090.00314.17
5.6.210.0030.04617.45
5.6.200.0030.04317.52
5.6.190.0080.04317.71
5.6.180.0060.04317.68
5.6.170.0040.02517.76
5.6.160.0030.02517.53
5.6.150.0030.02417.67
5.6.140.0050.02317.60
5.6.130.0100.04317.40
5.6.120.0000.04817.54
5.6.110.0020.04817.51
5.6.100.0000.04617.51
5.6.90.0030.05017.62
5.6.80.0040.02017.12
5.6.70.0020.02517.17
5.6.60.0110.01817.26
5.6.50.0090.01817.17
5.6.40.0030.02317.16
5.6.30.0080.01717.27
5.6.20.0010.02617.26
5.6.10.0040.01917.20
5.6.00.0020.02017.18
5.5.380.0040.00714.16
5.5.370.0000.00814.11
5.5.360.0000.01213.79
5.5.350.0030.04517.13
5.5.340.0120.03817.26
5.5.330.0060.04317.54
5.5.320.0050.04317.57
5.5.310.0000.02517.27
5.5.300.0050.04517.14
5.5.290.0020.03017.45
5.5.280.0060.03517.55
5.5.270.0090.04417.38
5.5.260.0100.04017.30
5.5.250.0160.03817.18
5.5.240.0040.02016.95
5.5.230.0020.02816.90
5.5.220.0070.02016.94
5.5.210.0080.02217.03
5.5.200.0020.02216.88
5.5.190.0020.02116.88
5.5.180.0030.02416.99
5.5.170.0060.00913.88
5.5.160.0080.01617.18
5.5.150.0010.02516.99
5.5.140.0030.02017.11
5.5.130.0000.02417.04
5.5.120.0000.02217.11
5.5.110.0060.01816.94
5.5.100.0040.01916.99
5.5.90.0050.01616.93
5.5.80.0080.01816.94
5.5.70.0040.02017.01
5.5.60.0020.02117.02
5.5.50.0040.01917.06
5.5.40.0040.01917.06
5.5.30.0030.02016.96
5.5.20.0040.02216.94
5.5.10.0050.01716.84
5.5.00.0030.01816.66
5.4.450.0050.04515.25
5.4.440.0050.04515.15
5.4.430.0020.03915.20
5.4.420.0050.03515.20
5.4.410.0000.04715.09
5.4.400.0070.01715.11
5.4.390.0020.02315.12
5.4.380.0040.02415.00
5.4.370.0030.02115.06
5.4.360.0040.01915.06
5.4.350.0040.02015.11
5.4.340.0000.02515.13
5.4.330.0070.00011.05
5.4.320.0050.02014.99
5.4.310.0030.02715.04
5.4.300.0000.01815.06
5.4.290.0020.02414.98
5.4.280.0030.01815.03
5.4.270.0020.02314.98
5.4.260.0020.01715.11
5.4.250.0040.01614.97
5.4.240.0040.02015.04
5.4.230.0020.02015.06
5.4.220.0020.01915.04
5.4.210.0040.01614.98
5.4.200.0060.01515.13
5.4.190.0040.01615.11
5.4.180.0010.01814.98
5.4.170.0030.02115.03
5.4.160.0030.01615.04
5.4.150.0050.01815.10
5.4.140.0060.03113.76
5.4.130.0050.01413.78
5.4.120.0020.01713.78
5.4.110.0050.03813.75
5.4.100.0040.03213.71
5.4.90.0060.03313.73
5.4.80.0060.02613.67
5.4.70.0040.04013.77
5.4.60.0040.04013.70
5.4.50.0020.03913.73
5.4.40.0030.03113.82
5.4.30.0030.04013.71
5.4.20.0030.03813.79
5.4.10.0030.03513.78
5.4.00.0030.03513.46
5.3.290.0020.02412.82
5.3.280.0000.02012.88
5.3.270.0030.02412.85
5.3.260.0030.01712.81
5.3.250.0000.03312.88
5.3.240.0020.01912.83
5.3.230.0000.01812.83
5.3.220.0060.03512.85
5.3.210.0070.03712.79
5.3.200.0000.04212.85
5.3.190.0000.04012.82
5.3.180.0040.03512.83
5.3.170.0030.03612.79
5.3.160.0040.04112.84
5.3.150.0030.03512.85
5.3.140.0030.04212.83
5.3.130.0070.03812.79
5.3.120.0020.04112.81
5.3.110.0060.03712.78
5.3.100.0050.02812.58
5.3.90.0050.04012.59
5.3.80.0070.03212.59
5.3.70.0020.03212.54
5.3.60.0070.03312.54
5.3.50.0030.04012.46
5.3.40.0050.04112.51
5.3.30.0070.03812.53
5.3.20.0050.03812.42
5.3.10.0050.03512.40
5.3.00.0030.03712.27
5.2.170.0000.05711.05
5.2.160.0070.04011.25
5.2.150.0070.05311.19
5.2.140.0130.05311.13
5.2.130.0070.05311.17
5.2.120.0000.06311.13
5.2.110.0100.05311.11
5.2.100.0100.05711.22
5.2.90.0030.05011.01
5.2.80.0000.06710.95
5.2.70.0070.05311.00
5.2.60.0030.06011.16
5.2.50.0030.06011.02
5.2.40.0030.05310.98
5.2.30.0000.05310.88
5.2.20.0000.03310.96
5.2.10.0030.04710.91
5.2.00.0030.05010.79
5.1.60.0030.0379.98
5.1.50.0030.05310.07
5.1.40.0000.04310.06
5.1.30.0100.05010.45
5.1.20.0070.05010.27
5.1.10.0000.05010.07
5.1.00.0030.05310.18
5.0.50.0000.0378.89
5.0.40.0070.0408.89
5.0.30.0030.0578.89
5.0.20.0000.0478.89
5.0.10.0000.0478.89
5.0.00.0000.0538.89
4.4.90.0000.0378.89
4.4.80.0030.0338.89
4.4.70.0000.0378.89
4.4.60.0000.0378.89
4.4.50.0030.0338.89
4.4.40.0000.0408.89
4.4.30.0000.0238.89
4.4.20.0070.0308.89
4.4.10.0000.0308.89
4.4.00.0000.0578.89
4.3.110.0030.0308.89
4.3.100.0070.0278.89
4.3.90.0030.0338.89
4.3.80.0030.0408.89
4.3.70.0100.0238.89
4.3.60.0000.0308.89
4.3.50.0030.0378.89
4.3.40.0000.0508.89
4.3.30.0030.0278.89
4.3.20.0000.0408.89
4.3.10.0000.0338.89
4.3.00.0030.0338.89

preferences:
42.23 ms | 400 KiB | 5 Q