$zahl=5000;
//===========================0
$t=microtime(true);
$a=array();
for ($x=0;$x<$zahl;$x++)
{
array_push($a,$x);
}
echo 'Array_Push: '.(microtime(true)-$t).'
';
flush();
$t=microtime(true);
$a=array();
for ($x=0;$x<$zahl;$x++)
{
$a[]=$x;
}
echo '$a[] :'.(microtime(true)-$t).'
';
flush();
$t=microtime(true);
$a=array();
for ($x=0;$x<$zahl;$x++)
{
array_unshift($a,$x);
}
echo 'array_unshift '.(microtime(true)-$t).'
';
flush();
?>