3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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++; }
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '<' in /in/PYC9d on line 3
Process exited with code 255.