my $anzahl = 10000;
my $output = '
<?php
$STARTZEIT = microtime();
$x = array(';
for ($i = 1; $i < $anzahl; $i++)
{
	$output .= '
	' . rand(15) . ' => array(' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . '),';

}
$output .= '
);
$LAUFZEIT = microtime() - $STARTZEIT;
print "Total Duration of this page: $LAUFZEIT microseconds";
?>';

open(PHP_FILE_ONE, ">php_test.php");
print PHP_FILE_ONE $output;
close(PHP_FILE_ONE);


$output = '
<?php
$STARTZEIT = microtime();
$x = array();';
for ($i = 1; $i < $anzahl; $i++)
{
    $output .= '
$x[' . rand(15) . '] = array(' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . rand(15) . ',' . ');';
}
$output .= '
$LAUFZEIT = microtime() - $STARTZEIT;
print "Total Duration of this page: $LAUFZEIT microseconds";
?>';

open(PHP_FILE_TWO, ">php_test2.php");
print PHP_FILE_TWO $output;
close(PHP_FILE_TWO);

