xref: /PHP-7.2/Zend/tests/shift_001.phpt (revision 17ccbeec)
1--TEST--
2shifting strings left
3--FILE--
4<?php
5
6$s = "123";
7$s1 = "test";
8$s2 = "45345some";
9
10$s <<= 2;
11var_dump($s);
12
13$s1 <<= 1;
14var_dump($s1);
15
16$s2 <<= 3;
17var_dump($s2);
18
19echo "Done\n";
20?>
21--EXPECTF--
22int(492)
23
24Warning: A non-numeric value encountered in %s on line %d
25int(0)
26
27Notice: A non well formed numeric value encountered in %s on line %d
28int(362760)
29Done
30