3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); interface A { public function foo(int $id): void; } interface B { public function foo(string $id): void; } class Bar implements A, B { public function foo($id): void { echo gettype($id); } } (new Bar)->foo(true);

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.0140.00718.31
8.3.50.0170.00316.29
8.3.40.0130.00321.86
8.3.30.0060.01218.58
8.3.20.0000.00724.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.180.0110.00425.92
8.2.170.0070.01318.91
8.2.160.0120.00622.96
8.2.150.0120.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00220.75
8.2.110.0120.00622.11
8.2.100.0060.00617.72
8.2.90.0030.00517.53
8.2.80.0040.00417.97
8.2.70.0040.00417.93
8.2.60.0090.00018.09
8.2.50.0040.00418.10
8.2.40.0060.00319.30
8.2.30.0070.00019.24
8.2.20.0000.00817.87
8.2.10.0000.00719.11
8.2.00.0060.00319.23
8.1.280.0070.01025.92
8.1.270.0000.00920.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.34
8.1.230.0000.01220.65
8.1.220.0040.00417.74
8.1.210.0000.00918.86
8.1.200.0100.00017.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0030.00518.59
8.1.160.0040.00418.95
8.1.150.0060.00318.79
8.1.140.0040.00420.59
8.1.130.0000.00720.08
8.1.120.0040.00417.30
8.1.110.0040.00417.36
8.1.100.0070.00017.29
8.1.90.0000.00717.42
8.1.80.0000.00717.38
8.1.70.0030.00317.32
8.1.60.0040.00417.51
8.1.50.0020.00517.37
8.1.40.0000.00817.37
8.1.30.0000.00917.49
8.1.20.0030.00617.56
8.1.10.0000.00817.52
8.1.00.0030.00517.50
8.0.300.0070.00020.03
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0070.00016.81
8.0.260.0060.00018.62
8.0.250.0030.00316.90
8.0.240.0000.00716.88
8.0.230.0000.00816.91
8.0.220.0000.00716.70
8.0.210.0020.00516.77
8.0.200.0070.00016.79
8.0.190.0050.00216.88
8.0.180.0050.00216.88
8.0.170.0030.00616.89
8.0.160.0080.00016.83
8.0.150.0000.00716.73
8.0.140.0000.00716.77
8.0.130.0000.00513.30
8.0.120.0000.00716.68
8.0.110.0090.00016.88
8.0.100.0040.00416.70
8.0.90.0000.00716.71
8.0.80.0050.01016.76
8.0.70.0080.00016.64
8.0.60.0040.00416.69
8.0.50.0040.00416.79
8.0.30.0170.00017.14
8.0.20.0130.00516.89
8.0.10.0040.00416.83
8.0.00.0100.01016.80
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0070.00016.60
7.4.290.0040.00416.45
7.4.280.0030.00516.39
7.4.270.0030.00316.52
7.4.260.0050.00013.22
7.4.250.0030.00316.53
7.4.240.0050.00216.42
7.4.230.0070.00016.45
7.4.220.0020.00516.46
7.4.210.0100.00916.58
7.4.200.0030.00316.34
7.4.130.0100.00716.45
7.4.120.0090.01016.18
7.4.110.0110.01116.25
7.4.100.0160.00716.36
7.4.90.0120.01016.36
7.4.80.0090.00916.33
7.4.70.0070.01216.39
7.4.60.0110.00916.36
7.4.50.0090.00816.35
7.4.40.0110.00816.16
7.4.30.0150.00616.45
7.4.20.0130.02416.41
7.4.10.0160.00316.34
7.4.00.0150.00716.40
7.3.330.0040.00416.04
7.3.320.0050.00013.10
7.3.310.0030.00516.19
7.3.300.0000.00716.10
7.3.290.0080.00716.21
7.3.260.0070.01016.41
7.3.240.0070.01216.23
7.3.230.0140.00616.30
7.3.220.0110.01216.44
7.3.210.0130.01316.31
7.3.200.0050.01416.28
7.3.190.0120.00616.28
7.3.180.0090.00716.21
7.3.170.0150.00516.34
7.3.160.0100.00716.25
7.3.150.0120.01116.24
7.3.140.0110.01516.30
7.3.130.0110.01016.32
7.3.120.0090.01316.27
7.3.110.0170.00516.32
7.3.100.0100.00916.13
7.3.90.0100.00816.20
7.3.80.0100.00816.26
7.3.70.0070.01016.17
7.3.60.0120.00616.25
7.3.50.0110.01116.21
7.3.40.0070.01216.10
7.3.30.0080.01116.07
7.3.20.0100.00816.35
7.3.10.0090.01016.17
7.3.00.0070.01116.31
7.2.340.0130.00916.44
7.2.330.0170.00616.53
7.2.320.0120.00716.47
7.2.310.0110.01016.36
7.2.300.0090.00916.46
7.2.290.0140.00316.39
7.2.280.0090.01216.30
7.2.270.0090.01116.47
7.2.260.0100.00816.45
7.2.250.0200.00516.64
7.2.240.0190.01216.61
7.2.230.0080.01116.45
7.2.220.0050.01616.63
7.2.210.0080.01316.51
7.2.200.0100.01116.46
7.2.190.0110.01016.40
7.2.180.0080.01116.37
7.2.170.0070.01416.30
7.2.160.0110.01116.46
7.2.150.0160.01116.33
7.2.140.0070.01216.32
7.2.130.0110.00616.38
7.2.120.0100.00916.41
7.2.110.0090.00916.45
7.2.100.0100.00916.45
7.2.90.0190.00716.47
7.2.80.0110.01116.31
7.2.70.0190.00416.37
7.2.60.0130.01016.43
7.2.50.0120.00716.44
7.2.40.0110.00816.30
7.2.30.0100.01016.46
7.2.20.0090.01416.28
7.2.10.0170.00716.32
7.2.00.0110.01416.41

preferences:
67.32 ms | 400 KiB | 5 Q