File manager - Edit - /opt/cpanel/ea-php74/root/usr/share/tests/pecl/mongodb/tests/bson/bson-int64-operation-003.phpt
Back
--TEST-- MongoDB\BSON\Int64 operations: increment/decrement --FILE-- <?php $value = new MongoDB\BSON\Int64(10); var_dump($value++); var_dump($value); var_dump(++$value); var_dump($value); var_dump($value--); var_dump($value); var_dump(--$value); var_dump($value); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "10" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "11" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "12" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "12" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "12" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "11" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "10" } object(MongoDB\BSON\Int64)#%d (%d) { ["integer"]=> string(2) "10" } ===DONE===
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings