ilk sorunu aşağıdaki gibi değiştirirsen performansın artar..

for ($i=0; $i<10; $i++)
{
	echo str_repeat('X',$i).'<br>';
}