3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php gc_enable(); class test { public static $my_static = 'foo'; public function __construct() { self::my_static = 5; } } $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.3.0 - 5.4.24
Parse error: syntax error, unexpected '=' in /in/FilWu on line 11
Process exited with code 255.