3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); <<deprecated>> class Catalogue { <<cacheable>> <<linksTo(Item::class)>> <<type('Item[]')>> public array $items = []; <<returns('Item[]')>> public function getItems(): array { return $this->items; } }

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.2.70.0080.00417.31
8.2.40.0150.00317.72
8.2.30.0100.00617.72
8.2.20.0110.00517.72
8.2.10.0110.00617.72
8.2.00.0080.00817.72
8.1.170.0080.00817.72
8.1.160.0090.00917.72
8.1.150.0130.00317.72
8.1.140.0160.00017.72
8.1.130.0160.00017.72
8.1.120.0070.00518.21
8.1.110.0130.00317.72
8.1.100.0120.00417.72
8.1.90.0100.00717.72
8.1.80.0140.00417.72
8.1.70.0080.00817.72
8.1.60.0070.00517.52
8.1.50.0140.00417.72
8.1.40.0130.00417.40
8.1.30.0100.00717.72
8.1.20.0110.00617.72
8.1.10.0170.00017.72
8.1.00.0140.00417.72
8.0.280.0070.00717.72
8.0.270.0110.00417.72
8.0.260.0100.00517.72
8.0.250.0070.00717.72
8.0.240.0170.00017.72
8.0.230.0140.00517.72
8.0.220.0150.00317.72
8.0.210.0140.00417.72
8.0.200.0100.00517.72
8.0.190.0160.00017.72
8.0.180.0090.00917.72
8.0.170.0110.00417.72
8.0.160.0150.00017.72
8.0.150.0100.00717.72
8.0.140.0140.00317.72
8.0.130.0100.00517.72
8.0.120.0100.00417.99
8.0.110.0130.00317.72
8.0.100.0150.00017.72
8.0.90.0080.00817.72
8.0.80.0090.00617.72
8.0.70.0000.01717.72
8.0.60.0190.00017.72
8.0.50.0140.00317.72
8.0.30.0100.00517.29
8.0.20.0140.00917.29
8.0.10.0150.00717.27
8.0.00.0120.00617.29
7.4.330.0060.00617.72
7.4.320.0120.00417.72
7.4.300.0090.00617.72
7.4.290.0080.00817.72
7.4.280.0160.00017.72
7.4.270.0110.00517.72
7.4.260.0080.00817.72
7.4.250.0110.00417.72
7.4.240.0000.01817.72
7.4.230.0140.00417.72
7.4.220.0140.00317.72
7.4.210.0070.00717.72
7.4.200.0100.00517.72
7.4.190.0060.01017.72
7.4.180.0110.00417.72
7.4.160.0180.00317.12
7.4.150.0100.01217.10
7.4.140.0110.00917.01
7.4.130.0160.00616.95
7.4.120.0160.00617.06
7.4.110.0150.00717.06
7.4.100.0090.01217.05
7.4.90.0150.00716.92
7.4.80.0110.01017.06
7.4.70.0150.00516.63
7.4.60.0180.00616.68
7.4.50.0130.00616.59
7.4.40.0210.00316.69
7.4.30.0170.00416.73
7.4.20.0110.01016.70
7.4.10.0120.00716.73
7.4.00.0090.00816.77
7.3.330.0120.00317.72
7.3.320.0140.00017.72
7.3.310.0110.00317.72
7.3.300.0090.00517.72
7.3.290.0100.00317.72
7.3.280.0140.00916.93
7.3.270.0140.00916.93
7.3.260.0100.00916.95
7.3.250.0120.01016.94
7.3.240.0150.00816.91
7.3.230.0120.00916.91
7.3.220.0210.00016.93
7.3.210.0160.00616.90
7.3.200.0130.00716.94
7.3.190.0160.00816.64
7.3.180.0160.00916.61
7.3.170.0130.00816.62
7.3.160.0110.00916.67
7.3.150.0100.01016.64
7.3.140.0120.00816.73
7.3.130.0150.00516.68
7.3.120.0190.00416.68
7.3.110.0160.00616.63
7.3.100.0110.00816.70
7.3.90.0130.00816.74
7.3.80.0120.00616.65
7.3.70.0090.01016.64
7.3.60.0130.00616.71
7.3.50.0110.01016.71
7.3.40.0120.00816.72
7.3.30.0080.00916.71
7.3.20.0100.00816.73
7.3.10.0070.01116.62
7.3.00.0120.00616.71
7.2.340.0100.00516.93
7.2.330.0090.01016.97
7.2.320.0130.00816.93
7.2.310.0150.00616.74
7.2.300.0140.00716.61
7.2.290.0140.00916.76
7.2.280.0140.00716.62
7.2.270.0100.01016.71
7.2.260.0160.00516.75
7.2.250.0140.00816.63
7.2.240.0120.01016.72
7.2.230.0110.01216.69
7.2.220.0150.00716.65
7.2.210.0170.00716.78
7.2.200.0120.00816.71
7.2.190.0090.01416.67
7.2.180.0150.01116.72
7.2.170.0110.01016.72
7.2.160.0120.01016.76
7.2.150.0300.00916.81
7.2.140.0140.00816.87
7.2.130.0160.00816.87
7.2.120.0110.01116.86
7.2.110.0140.01016.88
7.2.100.0180.00616.93
7.2.90.0140.00716.79
7.2.80.0180.00416.87
7.2.70.0210.01216.72
7.2.60.0180.00716.83
7.2.50.0110.01016.77
7.2.40.0110.00916.80
7.2.30.0270.01016.96
7.2.20.0160.00516.96
7.2.10.0150.00516.98
7.2.00.0110.00816.91

preferences:
145.5 ms | 1438 KiB | 7 Q