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).
Version | System time (s) | User time (s) | Memory (MiB) |
---|---|---|---|
8.3.3 | 0.012 | 0.011 | 22.96 |
<?php
enum Colour: int {
case Red = 1;
case Blue = 2;
case Green = 3;
}
class Car {
public function __construct(
private string $id,
private Colour $colour,
) {}
}
class CarStorage {
public function add(Car $car): void {}
public function get(string $id): ?Car {
}
}
$storage = new CarStorage;
$carId = uniqid();
$car = new Car($carId, Colour::Red);
var_dump($car);
$storage->add($car);
// $car = $storage->get($carId);
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).
Version | System time (s) | User time (s) | Memory (MiB) |
---|---|---|---|
8.3.3 | 0.012 | 0.011 | 22.96 |