diff options
author | Andrey Hristov <andrey@php.net> | 1999-07-08 21:42:29 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 1999-07-08 21:42:29 +0000 |
commit | cef4df1fee046105ab35f47c152d39bf16a55a07 (patch) | |
tree | 3c633689c360b1682408c0b2410836d357fce59b /tests/test.pl | |
parent | cb2a2ea9d39c002c0aa2eb06c21da9e48597b032 (diff) | |
download | php-git-cef4df1fee046105ab35f47c152d39bf16a55a07.tar.gz |
Reduce clutter a bit.
Diffstat (limited to 'tests/test.pl')
-rw-r--r-- | tests/test.pl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/test.pl b/tests/test.pl new file mode 100644 index 0000000000..2502cb1298 --- /dev/null +++ b/tests/test.pl @@ -0,0 +1,34 @@ +<? + +$i = 0; +$j = 1; + +for ($k=0; $k<1000000; $k = $k+1) { + while ($i<10000000) { + if (($i%"4")<1) { + $i = $i+"1"; + if ($j%"2") { + $i = $i * "2"; + } + } elseif (($i%"4")<2) { + $i = $i+"2"; + if ($j%"2") { + $i = $i * "2"; + } + } elseif (($i%"4")<3) { + $i = $i+3; + if ($j%"2") { + $i = $i * "2"; + } + } else { + $i = $i+"4"; + if ($j%"2") { + $i = $i * "2"; + } + } + $j = $j+1; + } +} +print $i; +print "\n"; + |