\n";} else {$newline="\n";} $start=microtime(TRUE); print "Pass by Reference{$newline}"; print "Start: $start{$newline}"; for ($x=0;$x<500;$x++) { $a=passByRef($blobofdata); // passes it by reference 500 times } $end=microtime(TRUE); print "End: $end{$newline}Total=".($end-$start).$newline.$newline; $start=$end; print "Pass by Value{$newline}"; print "Start: $start{$newline}"; for ($x=0;$x<500;$x++) { $a=passByValue($blobofdata); // passes it by value 500 times } $end=microtime(TRUE); print "End: $end{$newline}Total=".($end-$start).$newline; function passByRef(&$bla) { return $bla; } function passByValue($bla) { return $bla; } ?>