xref: /PHP-7.1/Zend/tests/shift_002.phpt (revision 7af945e2)
1--TEST--
2shifting strings right
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(30)
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(5668)
29Done
30