xref: /PHP-7.2/Zend/tests/not_001.phpt (revision 17ccbeec)
1--TEST--
2bitwise NOT, doubles and strings
3--FILE--
4<?php
5
6$d = 23.67;
7$s = "48484.22";
8$s1 = "test";
9$s2 = "some";
10
11$s = ~$d;
12var_dump($s);
13
14$s1 = ~$s2;
15var_dump(bin2hex($s1));
16
17echo "Done\n";
18?>
19--EXPECTF--
20int(-24)
21string(8) "8c90929a"
22Done
23