xref: /PHP-8.4/Zend/tests/not_001.phpt (revision b8e380ab)
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--
20Deprecated: Implicit conversion from float 23.67 to int loses precision in %s on line %d
21int(-24)
22string(8) "8c90929a"
23Done
24