<?php
$totalTimeFunction=0;
function f1()
{
	 $t1=microtime(true);
	for($i=0;$i<900;$i++)
	{}
	$t2=microtime(true);
	$p=($t2-$t1);
	$GLOBALS['totalTimeFunction']+=$p;  
}


 $t1=microtime(true);
f1();
$t2=microtime(true);
$p=($t2-$t1);
echo 'OutFunction='.$p."\n";
echo 'inFunction='.$GLOBALS['totalTimeFunction']."\n";die;