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.2.6 | 0.006 | 0.003 | 17.92 |
<?php
enum Status: int {
case Open = 1;
case Close = 2;
}
#[Attribute]
class Bar {
private int $value;
public function __construct(int $value)
{
$this->value = $value;
}
public function debug()
{
var_dump("value is => [{$this->value}]");
}
}
#[Bar(Status::Open->value)]
class Foo {
}
$reflector = new \ReflectionClass(Foo::class);
$attributes = $reflector->getAttributes();
$bar = $attributes[0]->newInstance();
$bar->debug();
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.2.6 | 0.006 | 0.003 | 17.92 |