diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
| commit | 02608271bb2a9f3a65ed536984d306ee14b48e34 (patch) | |
| tree | 3f23ec48a694ec014e845c4f70d9b5f1c065403c /tests/code/bits.php | |
| download | kalassa-02608271bb2a9f3a65ed536984d306ee14b48e34.tar.gz kalassa-02608271bb2a9f3a65ed536984d306ee14b48e34.tar.bz2 kalassa-02608271bb2a9f3a65ed536984d306ee14b48e34.zip | |
Diffstat (limited to 'tests/code/bits.php')
| -rwxr-xr-x | 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 100755 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 |
