3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $startMemory = memory_get_usage(); $array = range(1, 100000); foreach($array as $arr){ if($k%1000 == 0){ echo memory_get_usage() - $startMemory, ' bytes'; } } echo 'Finnally' . memory_get_usage() - $startMemory, ' bytes';