diff options
Diffstat (limited to 'tests/code/bits.php')
| -rw-r--r-- | tests/code/bits.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/code/bits.php b/tests/code/bits.php new file mode 100644 index 0000000..1ee1826 --- /dev/null +++ b/tests/code/bits.php @@ -0,0 +1,51 @@ +<?php +echo '<pre>'; + + +$a = 1; +$b = 2; +$c = 4; + +echo "\n\n(a|b)&...\n---\n"; +echo ($a|$b)&$a; +echo "\n"; +echo ($a|$b)&$b; +echo "\n"; +echo ($a|$b)&$c; + +echo "\n\n(b|c)&...\n---\n"; +echo ($b|$c)&$a; +echo "\n"; +echo ($b|$c)&$b; +echo "\n"; +echo ($b|$c)&$c; + +echo "\n\n(a|b|c)&...\n---\n"; +echo ($a|$b|$c)&$a; +echo "\n"; +echo ($a|$b|$c)&$b; +echo "\n"; +echo ($a|$b|$c)&$c; +echo "\n"; + + +/* + +3 +--- +%2 = 1 then a +/2 = 1 + +%2 = 1 then b +0 end + + +6 +--- +%2 = 0 NOT A +/2 = 3 + +%2 = + + +*/
\ No newline at end of file |
