xref: /PHP-5.4/Zend/tests/shift_002.phpt (revision c3b9d939)
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)
23int(0)
24int(5668)
25Done
26