📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 07:18:51
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php82-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: bson-int64-operation-004.phpt
Read Only
--TEST-- MongoDB\BSON\Int64 operations: bitwise operators --FILE-- <?php $value = new MongoDB\BSON\Int64(10); $int64Max = new MongoDB\BSON\Int64('9223372036854775807'); $int64Min = new MongoDB\BSON\Int64('-9223372036854775808'); var_dump($value << 3); var_dump($value >> 1); var_dump($int64Max << 1); var_dump($value | 1); // 11 var_dump($value & 8); // 8 var_dump($value ^ 2); // 8 var_dump(~$value); // -11 var_dump(~$int64Min); // 9223372036854775807 ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "80" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(1) "5" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "-2" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "11" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(1) "8" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(1) "8" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(3) "-11" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(19) "9223372036854775807" } ===DONE===
💾 Save Changes
❌ Cancel