$bin_right=pack("i",0);
$all=$nRight.$bin_right;
$nRight = $nRight << 1;
$nRight = 55;
echo decbin($nRight); // 110111
$nRight = $nRight << 1;
echo decbin($nRight); // 1101110
echo $nRight; // 110 в десятичной ( это 55 * 2 )
$all = $nRight . pack('C', 0);