3v4l.org

run code in 300+ PHP versions simultaneously
<?php class OfficeProductResponseDTO { /** * @param string|null $officeId GUID офиса * @param array $products Массив GUID товаров * @param int|null $code Код * @param string|null $message Сообщение * @param int|null $reason Причина */ public function __construct( public readonly ?string $officeId, public readonly array $products, public readonly ?int $code, public readonly ?int $reason, public readonly ?string $message, ) { } } $dto = new OfficeProductResponseDTO('12', ['guid'], 200, 5, 'message'); // $dto->officeId = 'guid2'; var_dump($dto->officeId);

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.4.60.0110.01017.99
8.4.50.0100.01417.99
8.4.40.0190.00717.48
8.4.30.0170.00617.60
8.4.20.0130.00517.67
8.4.10.0070.00317.43
8.3.200.0110.00916.40
8.3.190.0090.00316.56
8.3.180.0080.00216.72
8.3.170.0150.00416.36
8.3.160.0150.00516.67
8.3.150.0170.00416.35
8.3.140.0140.00516.44
8.3.130.0150.00316.59
8.3.120.0150.00216.60
8.3.110.0120.00616.50
8.3.100.0150.00416.50
8.3.90.0170.00316.51
8.3.80.0170.00416.29
8.3.70.0160.00416.29
8.3.60.0170.00316.31
8.3.50.0170.00316.17
8.3.40.0120.00517.30
8.3.30.0120.00517.56
8.3.20.0140.00617.30
8.3.10.0150.00417.47
8.3.00.0060.00517.56
8.2.280.0100.00416.25
8.2.270.0120.00216.57
8.2.260.0100.00516.68
8.2.250.0120.00416.66
8.2.240.0150.00216.28
8.2.230.0120.00616.21
8.2.220.0160.00316.64
8.2.210.0150.00416.22
8.2.200.0130.00216.61
8.2.190.0130.00416.47
8.2.180.0120.00416.57
8.2.170.0130.00417.51
8.2.160.0120.00517.65
8.2.150.0180.00217.20
8.2.140.0230.00717.18
8.2.130.0220.00417.56
8.2.120.0140.00417.39
8.2.110.0170.00617.39
8.2.100.0160.00817.33
8.2.90.0140.00717.44
8.2.80.0180.00917.45
8.2.70.0230.00717.50
8.2.60.0110.00617.20
8.2.50.0140.00516.97
8.2.40.0150.00317.29
8.2.30.0120.00417.16
8.2.20.0150.00317.42
8.2.10.0110.00617.46
8.2.00.0100.00617.41
8.1.320.0090.00615.97

preferences:
24.62 ms | 403 KiB | 5 Q