mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
26 lines
236 B
Plaintext
26 lines
236 B
Plaintext
|
--TEST--
|
||
|
shifting strings left
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$s = "123";
|
||
|
$s1 = "test";
|
||
|
$s2 = "45345some";
|
||
|
|
||
|
$s <<= 2;
|
||
|
var_dump($s);
|
||
|
|
||
|
$s1 <<= 1;
|
||
|
var_dump($s1);
|
||
|
|
||
|
$s2 <<= 3;
|
||
|
var_dump($s2);
|
||
|
|
||
|
echo "Done\n";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
int(492)
|
||
|
int(0)
|
||
|
int(362760)
|
||
|
Done
|