3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Catalogue { private int $id; private string $name; private int $type; private string $description; private Cost $cost; private bool $visible; public function __construct( int $id, string $name, int $type, string $description, Cost $cost, bool $visible ) { $this->id = $id; $this->name = $name; $this->type = $type; $this->description = $description; $this->cost = $cost; $this->visible = $visible; } }

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.140.0110.00416.48
8.3.130.0040.00416.41
8.3.120.0110.00018.52
8.3.110.0060.00320.94
8.3.100.0160.00324.06
8.3.90.0090.00926.77
8.3.80.0000.00916.50
8.3.70.0160.00316.58
8.3.60.0140.00718.05
8.3.50.0140.00524.46
8.3.40.0040.01118.69
8.3.30.0030.01018.67
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.250.0040.00416.46
8.2.240.0070.01317.05
8.2.230.0040.00422.58
8.2.220.0090.00637.54
8.2.210.0030.00626.77
8.2.200.0040.00416.50
8.2.190.0150.00616.58
8.2.180.0090.00925.92
8.2.170.0110.00318.50
8.2.160.0070.01422.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00326.35
8.2.110.0040.00420.22
8.2.100.0150.00317.78
8.2.90.0030.00519.11
8.2.80.0050.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00417.50
8.2.50.0090.00018.10
8.2.40.0090.00022.27
8.2.30.0040.00417.93
8.2.20.0030.00618.00
8.2.10.0070.00019.05
8.2.00.0040.00419.08
8.1.300.0090.00915.98
8.1.290.0090.00018.88
8.1.280.0120.00425.92
8.1.270.0060.00323.99
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0100.00318.97
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0050.00318.46
8.1.160.0000.00918.70
8.1.150.0070.00018.80
8.1.140.0040.00418.68
8.1.130.0040.00417.33
8.1.120.0000.00717.25
8.1.110.0060.00317.30
8.1.100.0030.00617.27
8.1.90.0000.00717.31
8.1.80.0000.00717.32
8.1.70.0030.00317.35
8.1.60.0040.00417.35
8.1.50.0000.00717.32
8.1.40.0020.00517.32
8.1.30.0040.00417.43
8.1.20.0030.00617.42
8.1.10.0060.00317.40
8.1.00.0030.00617.35
8.0.300.0040.00418.77
8.0.290.0000.00716.58
8.0.280.0030.00318.31
8.0.270.0000.00717.79
8.0.260.0030.00316.71
8.0.250.0070.00016.85
8.0.240.0000.00716.78
8.0.230.0000.00616.84
8.0.220.0000.00916.77
8.0.210.0030.00316.84
8.0.200.0040.00416.73
8.0.190.0000.00816.83
8.0.180.0030.00316.85
8.0.170.0030.00616.80
8.0.160.0050.00216.70
8.0.150.0040.00416.73
8.0.140.0040.00416.78
8.0.130.0000.00613.30
8.0.120.0070.00016.79
8.0.110.0070.00016.79
8.0.100.0050.00216.63
8.0.90.0070.00016.65
8.0.80.0080.00716.71
8.0.70.0060.00316.71
8.0.60.0000.00716.72
8.0.50.0000.00716.63
8.0.30.0030.01317.04
8.0.20.0090.00916.90
8.0.10.0030.00416.84
8.0.00.0180.00016.50
7.4.330.0040.00015.55
7.4.320.0030.00316.41
7.4.300.0090.00016.38
7.4.290.0040.00416.39
7.4.280.0080.00016.36
7.4.270.0030.00316.39
7.4.260.0000.00613.17
7.4.250.0050.00316.36
7.4.240.0000.00716.48
7.4.230.0000.00716.56
7.4.220.0020.00516.31
7.4.210.0080.01016.46
7.4.200.0060.00316.42
7.4.130.0100.00716.37
7.4.120.0130.01016.38
7.4.110.0060.01016.45
7.4.100.0070.01016.52
7.4.90.0110.00716.41
7.4.80.0150.00319.39
7.4.70.0070.01316.25
7.4.60.0110.01116.29
7.4.50.0140.01016.22
7.4.40.0090.00916.29
7.4.30.0120.00916.18
7.4.20.0130.01116.24
7.4.10.0090.01216.32
7.4.00.0050.01416.45
7.3.330.0060.00016.09
7.3.320.0000.00613.28
7.3.310.0000.00716.17
7.3.300.0000.00716.17
7.3.290.0000.00716.13
7.3.280.0120.00916.17
7.3.260.0030.01316.17
7.3.240.0070.01116.25
7.3.230.0070.01016.23
7.3.210.0060.00916.07
7.3.200.0100.01016.21
7.3.190.0100.01116.18
7.3.180.0130.00716.14
7.3.170.0150.00716.34
7.3.160.0180.00816.14
7.3.150.0120.01016.21
7.3.140.0130.00816.24
7.3.130.0130.01116.27
7.3.120.0130.00816.17
7.3.110.0120.01116.18
7.3.100.0190.00516.13
7.3.90.0220.00316.16
7.3.80.0130.01116.16
7.3.70.0130.00916.18
7.3.60.0110.01016.17
7.3.50.0050.01316.22
7.3.40.0100.01116.19
7.3.30.0110.00816.21
7.3.20.0120.00816.18
7.3.10.0180.00316.16
7.3.00.0110.01116.17
7.2.340.0110.00316.12
7.2.330.0060.01516.46
7.2.320.0070.01616.48
7.2.310.0140.00816.40
7.2.300.0180.00816.29
7.2.290.0180.00516.26
7.2.280.0140.00816.35
7.2.270.0150.00716.26
7.2.260.0140.00916.35
7.2.250.0140.00616.01
7.2.240.0110.01116.28
7.2.230.0100.01316.16
7.2.220.0150.01116.21
7.2.210.0160.00916.16
7.2.200.0110.01316.25
7.2.190.0130.01016.33
7.2.180.0080.01316.31
7.2.170.0120.00716.26
7.2.160.0140.00516.25
7.2.150.0120.01116.44
7.2.140.0120.01016.32
7.2.130.0100.01116.22
7.2.120.0110.00816.34
7.2.110.0140.00816.32
7.2.100.0170.00416.26
7.2.90.0100.01016.49
7.2.80.0120.01016.34
7.2.70.0130.01116.30
7.2.60.0110.00816.28
7.2.50.0070.01216.13
7.2.40.0130.00916.42
7.2.30.0120.00916.33
7.2.20.0120.01016.31
7.2.10.0060.01316.27
7.2.00.0150.00916.24
5.6.400.0120.01216.67

preferences:
56.96 ms | 403 KiB | 5 Q