8 for ($i = 0; $i < 1000000; $i++)
11 $thisisanotherlongname = 0;
12 for ($thisisalongname = 0; $thisisalongname < 1000000; $thisisalongname++)
13 $thisisanotherlongname++;
19 for ($i = 0; $i < 1000000; $i++)
29 for ($i = 0; $i < 1000000; $i++)
36 for ($i = 0; $i < 1000000; $i++)
51 $s=0; $rec=0; $imc=0; $re=0;
$im=0; $re2=0; $im2=0;
52 $x=0; $y=0; $w2=0; $h2=0; $color=0;
56 for ($y=0 ; $y<=$w1; $y=$y+1) {
57 $imc=
$s*($y-$h2)+$imcen;
59 $rec=
$s*(
$x-$w2)+$recen;
65 while( ((($re2+$im2)<1000000) && $color>0)) {
86 $b =
" .:,;!/>)|&IH%*#";
88 for ($y=30;
printf(
"\n"), $C = $y*0.1 - 1.5, $y--;){
89 for (
$x=0; $c =
$x*0.04 - 2,
$z=0, $Z=0,
$x++ < 75;){
90 for ($r=$c, $i=$C, $k=0;
$t =
$z*
$z - $Z*$Z + $r, $Z = 2*
$z*$Z + $i,
$z=
$t, $k<5000; $k++)
91 if (
$z*
$z + $Z*$Z > 500000)
break;
100 if($m == 0)
return $n+1;
101 if(
$n == 0)
return Ack($m-1, 1);
102 return Ack($m - 1,
Ack($m, (
$n - 1)));
107 print "Ack(3,$n): $r\n";
113 for ($i=0; $i<
$n; $i++) {
116 for ($i=
$n-1; $i>=0; $i--) {
139 for ($i=
$n-1; $i>=0;) {
140 $Y[$i] = $X[$i]; --$i;
141 $Y[$i] = $X[$i]; --$i;
142 $Y[$i] = $X[$i]; --$i;
143 $Y[$i] = $X[$i]; --$i;
144 $Y[$i] = $X[$i]; --$i;
146 $Y[$i] = $X[$i]; --$i;
147 $Y[$i] = $X[$i]; --$i;
148 $Y[$i] = $X[$i]; --$i;
149 $Y[$i] = $X[$i]; --$i;
150 $Y[$i] = $X[$i]; --$i;
159 for ($i=0; $i<
$n; $i++) {
163 for ($k=0; $k<1000; $k++) {
164 for ($i=
$n-1; $i>=0; $i--) {
169 print "$Y[0] $Y[$last]\n";
186 for ($i = 1; $i <=
$n; $i++) {
190 for ($i =
$n; $i > 0; $i--) {
191 if ($X[
dechex($i)]) { $c++; }
199 for ($i = 0; $i <
$n; $i++) {
200 $hash1[
"foo_$i"] = $i;
201 $hash2[
"foo_$i"] = 0;
203 for ($i =
$n; $i > 0; $i--) {
204 foreach($hash1 as $key => $value) $hash2[$key] += $value;
207 $last =
"foo_".($n-1);
208 print "$hash1[$first] $hash1[$last] $hash2[$first] $hash2[$last]\n";
215 return( (
$n * ($LAST = ($LAST * IA + IC) % IM)) / IM );
236 if (($j < $ir) && ($ra[$j] < $ra[$j+1])) {
239 if ($rra < $ra[$j]) {
258 for ($i=1; $i<=$N; $i++) {
262 printf(
"%.10f\n", $ary[$N]);
270 for ($i=0; $i<$rows; $i++) {
271 for ($j=0; $j<$cols; $j++) {
272 $mx[$i][$j] = $count++;
278function mmult ($rows, $cols, $m1, $m2) {
280 for ($i=0; $i<$rows; $i++) {
281 for ($j=0; $j<$cols; $j++) {
283 for ($k=0; $k<$cols; $k++) {
284 $x += $m1[$i][$k] * $m2[$k][$j];
297 $mm =
mmult($SIZE, $SIZE, $m1, $m2);
299 print "{$mm[0][0]} {$mm[2][3]} {$mm[3][2]} {$mm[4][4]}\n";
307 for ($b=0; $b<
$n; $b++)
308 for ($c=0; $c<
$n; $c++)
309 for ($d=0; $d<
$n; $d++)
310 for ($e=0; $e<
$n; $e++)
311 for ($f=0; $f<
$n; $f++)
322 $flags = range (0,8192);
323 for ($i=2; $i<8193; $i++) {
324 if ($flags[$i] > 0) {
325 for ($k=$i+$i; $k <= 8192; $k+=$i) {
332 print "Count: $count\n";
351 return (($hrtime[0]*1000000000 + $hrtime[1]) / 1000000000);
365 $total += $end-$start;
369 echo
$name.$pad.$num.
"\n";
381 echo
"Total".$pad.$num.
"\n";
if(function_exists("date_default_timezone_set")) simple()
mmult($rows, $cols, $m1, $m2)
str_repeat(string $string, int $times)
hrtime(bool $as_number=false)
printf(string $format, mixed ... $values)
ob_start($callback=null, int $chunk_size=0, int $flags=PHP_OUTPUT_HANDLER_STDFLAGS)
number_format(float $num, int $decimals=0, ?string $decimal_separator=".", ?string $thousands_separator=",")
date_default_timezone_set(string $timezoneId)
function_exists(string $function)
define(string $constant_name, mixed $value, bool $case_insensitive=false)