<?php

$array = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);

$oldway = true;

if ($oldway) {
	while (true)
	{
		/* does basically nothing, but creates functions for each array element */
		$array = array_map(create_function('$o', 'return $o;'), $array);
	
		echo memory_get_usage() ."\n";
	
		sleep(1);
	}

} else {
	while (true)
	{
		/* does basically nothing, but creates functions for each array element */
		$array = array_map(function($o) { return $o; }, $array);
	
		echo memory_get_usage() ."\n";
	
		sleep(1);
	}
}