3v4l.org

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