3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface One { function callme(string $data): void; } interface Two { function callme(int $data): void; } class C implements One, Two { /** @param mixed $_p */ public function callme($_p): void {} } function oneone(One $one): void { $one->callme("data"); } function twotwo(Two $two): void { $two->callme(42); } $c = new C; oneone($c); twotwo($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.5.70.0100.00716.86
8.5.60.0080.01116.76
8.5.50.0120.00416.61
8.5.30.0110.00619.27
8.5.20.0090.00821.22
8.5.10.0130.00516.68
8.5.00.0050.00319.78
8.4.220.0100.00619.50
8.4.210.0110.01019.41
8.4.180.0100.01419.56
8.4.170.0150.00620.35
8.4.160.0120.00923.85
8.4.150.0070.00516.86
8.4.140.0070.01317.35
8.4.130.0130.00819.50
8.4.120.0130.00623.98
8.4.110.0080.01122.41
8.4.100.0090.01218.42
8.4.90.0030.00618.98
8.4.80.0070.00618.80
8.4.70.0140.00620.36
8.4.60.0110.00918.77
8.4.50.0120.00718.48
8.4.40.0030.00619.42
8.4.30.0130.00720.59
8.4.20.0090.00019.02
8.4.10.0160.00317.54
8.3.310.0150.00618.29
8.3.300.0150.00720.82
8.3.290.0120.00720.95
8.3.280.0110.00918.38
8.3.270.0120.00816.41
8.3.260.0120.00716.37
8.3.250.0100.01118.78
8.3.240.0130.00617.16
8.3.230.0050.00316.44
8.3.220.0130.00520.64
8.3.210.0060.00416.85
8.3.200.0060.00316.52
8.3.190.0110.01017.07
8.3.180.0100.00817.30
8.3.170.0060.01220.77
8.3.160.0030.01717.21
8.3.150.0120.00617.18
8.3.140.0070.01116.60
8.3.130.0090.00018.33
8.3.120.0030.00520.76
8.3.110.0060.00316.41
8.3.100.0100.00016.60
8.3.90.0050.00316.48
8.3.80.0060.00318.31
8.3.70.0120.00318.18
8.3.60.0150.00618.31
8.3.50.0100.00618.84
8.3.40.0000.01518.71
8.3.30.0060.00918.90
8.3.20.0000.00720.86
8.3.10.0000.00822.04
8.3.00.0040.00420.58
8.2.310.0110.00818.01
8.2.300.0160.00722.30
8.2.290.0110.00820.67
8.2.280.0050.00318.38
8.2.270.0040.00417.04
8.2.260.0030.01416.42
8.2.250.0190.00018.15
8.2.240.0080.00017.31
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0120.00326.77
8.2.200.0060.00318.41
8.2.190.0170.00316.75
8.2.180.0080.00818.54
8.2.170.0080.00822.96
8.2.160.0070.00722.11
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0060.00320.38
8.2.100.0040.00817.66
8.2.90.0060.00320.59
8.2.80.0040.00417.97
8.2.70.0030.00618.05
8.2.60.0000.00818.22
8.2.50.0030.00518.10
8.2.40.0050.00320.59
8.2.30.0050.00219.25
8.2.20.0030.00618.11
8.2.10.0070.00019.12
8.2.00.0050.00319.11
8.1.340.0130.00717.64
8.1.330.0140.00421.90
8.1.320.0100.00915.98
8.1.310.0070.00718.53
8.1.300.0140.00320.25
8.1.290.0060.00318.88
8.1.280.0120.00325.92
8.1.270.0030.00522.38
8.1.260.0100.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00422.20
8.1.230.0000.01122.09
8.1.220.0030.00617.76
8.1.210.0030.00618.99
8.1.200.0060.00317.00
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0000.00820.73
8.1.160.0050.00218.92
8.1.150.0040.00418.80
8.1.140.0040.00420.26
8.1.130.0040.00420.13
8.1.120.0070.00017.40
8.1.110.0000.00817.46
8.1.100.0000.00717.34
8.1.90.0070.00017.36
8.1.80.0070.00017.45
8.1.70.0030.00517.45
8.1.60.0030.00617.60
8.1.50.0050.00317.53
8.1.40.0030.00517.44
8.1.30.0040.00417.69
8.1.20.0030.00517.66
8.1.10.0000.00817.38
8.1.00.0040.00417.43
8.0.300.0000.00719.98
8.0.290.0000.00816.75
8.0.280.0000.00718.41
8.0.270.0070.00016.88
8.0.260.0070.00020.08
8.0.250.0000.00616.92
8.0.240.0040.00416.95
8.0.230.0030.00317.07
8.0.220.0000.00716.99
8.0.210.0060.00016.88
8.0.200.0000.00617.02
8.0.190.0040.00416.92
8.0.180.0000.00716.83
8.0.170.0090.00016.93
8.0.160.0000.00716.83
8.0.150.0070.00016.78
8.0.140.0070.00016.79
8.0.130.0040.00413.35
8.0.120.0040.00416.94
8.0.110.0040.00416.89
8.0.100.0040.00416.93
8.0.90.0060.00316.86
8.0.80.0110.01016.85
8.0.70.0040.00416.75
8.0.60.0040.00416.80
8.0.50.0040.00416.85
8.0.30.0100.01116.93
8.0.20.0120.00616.94
8.0.10.0050.00216.90
8.0.00.0040.01317.02
7.4.330.0050.00015.55
7.4.320.0000.00716.52
7.4.300.0040.00416.65
7.4.290.0040.00416.59
7.4.280.0040.00416.61
7.4.270.0050.00316.60
7.4.260.0000.00513.25
7.4.250.0000.00716.56
7.4.240.0020.00616.50
7.4.230.0040.00416.44
7.4.220.0030.00316.60
7.4.210.0060.01116.50
7.4.200.0030.00316.70
7.4.130.0140.00416.41
7.4.120.0120.00916.50
7.4.110.0100.00716.55
7.4.100.0140.00716.30
7.4.90.0080.00916.49
7.4.80.0070.01419.39
7.4.70.0100.00616.30
7.4.60.0100.00716.53
7.4.50.0070.01016.58
7.4.40.0090.00916.43
7.4.00.0040.00714.69
7.3.330.0000.00716.40
7.3.320.0050.00013.13
7.3.310.0000.00716.30
7.3.300.0070.00016.19
7.3.290.0080.00916.22
7.3.280.0050.01516.29
7.3.260.0090.00816.40
7.3.240.0100.00716.43
7.3.230.0130.00316.62
7.3.210.0130.00316.33
7.3.200.0090.00816.50
7.3.190.0040.01516.35
7.3.180.0110.00416.41
7.3.170.0150.00616.36
7.3.160.0070.01416.42
7.3.100.0100.01014.79
7.3.90.0030.01914.82
7.3.80.0120.00314.77
7.3.70.0070.00714.84
7.3.60.0000.01314.57
7.3.50.0100.00714.81
7.3.40.0030.01014.51
7.3.30.0030.01014.62
7.3.20.0040.00814.61
7.3.10.0060.00914.77
7.3.00.0070.00714.50
7.2.330.0100.01416.37
7.2.320.0030.01716.78
7.2.310.0030.01316.70
7.2.300.0090.00616.68
7.2.290.0070.01016.73
7.2.230.0030.01315.07
7.2.220.0130.00714.76
7.2.210.0040.01214.97
7.2.200.0150.00015.13
7.2.190.0030.01015.16
7.2.180.0110.00415.04
7.2.170.0110.00414.91
7.2.160.0030.01014.91
7.2.150.0090.00615.03
7.2.140.0110.00315.10
7.2.130.0070.00715.04
7.2.120.0160.00315.05
7.2.110.0090.00614.95
7.2.100.0060.00815.06
7.2.90.0030.01314.91
7.2.80.0030.01015.05
7.2.70.0090.00615.18
7.2.60.0190.00015.05
7.2.50.0080.00815.06
7.2.40.0040.01214.87
7.2.30.0060.01014.86
7.2.20.0040.01014.96
7.2.10.0110.00414.99
7.2.00.0030.01014.93
7.1.320.0110.00713.91
7.1.310.0090.00613.74
7.1.300.0030.01013.78
7.1.290.0080.00813.68
7.1.280.0040.01113.63
7.1.270.0000.01313.91
7.1.260.0030.01513.73
7.1.250.0060.00913.70

preferences:
107.73 ms | 1472 KiB | 5 Q