24 lines
385 B
PHP
24 lines
385 B
PHP
<?php
|
|
echo "Hello, heavy stuff here:\n";
|
|
|
|
function someReallyHeavyStuff($lima, $limb){
|
|
$result=0;
|
|
for($i=0;$i<$lima;$i++){
|
|
$sum=0;
|
|
for($j=0;$j<$limb;$j++){
|
|
$sum+=$i+$j;
|
|
}
|
|
$result+=$sum;
|
|
}
|
|
$result = 0;
|
|
for($i=0;$i<$lima;$i++){
|
|
$result+=$sum;
|
|
}
|
|
return $result;
|
|
}
|
|
|
|
$result = someReallyHeavyStuff(1000,1000);
|
|
|
|
echo "The heavy result: $result\n"
|
|
|
|
?>
|