- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected '<' in /in/PYC9d on line 3
Process exited with code 255.
<?php
<?php
gc_enable();
class test
{
public $spl;
public function __construct()
{
$this->spl = new SplPriorityQueue();
$this->spl->insert($this, 1);
}
}
$i = 0;
while($i < 500) {
$test = new test();
unset($test);
gc_collect_cycles();
echo sprintf('%1$04d: ', $i) . number_format(memory_get_usage()) . " B\n";
$i++;
}