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.4.10 | 0.032 | 0.008 | 17.45 |
<?php
class P {
protected static $v = 1;
public function output() {
echo new ReflectionProperty($this, 'v')->getValue($this);
}
}
class C extends P {
public function test(P $i) {
return $i->v;
}
}
class C2 extends P {
protected static $v = 2;
}
$c = new C;
$c2 = new C2;
$reflection = new ReflectionClass(P::class);
$property = $reflection->getProperty('v');
echo $property->getValue($c2);
echo new ReflectionProperty(P::class, 'v')->getValue($c2);
$c2->output();
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.4.10 | 0.032 | 0.008 | 17.45 |