- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Parse error: syntax error, unexpected '=' in /in/2s8U9 on line 11
Process exited with code 255.
<?php
gc_enable();
class test
{
public $spl;
public function __construct()
{
self::spl = 5;
}
}
$i = 0;
while($i < 500) {
$test = new test();
unset($test);
gc_collect_cycles();
echo number_format(memory_get_usage()) . " B \n";
$i++;
}