<? function foo($i) { if ($i) { $a = "zeev"; } else { $b = "andi"; } } function bar($a) { foo($a); } for ($i=0; $i<10000; $i=$i+1) { bar($i); }