code: def list_(channel=None):
      '''
      List installed pecl extensions.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pecl.list
      '''
      pecl_channel_pat = re.compile('^([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)')
      pecls = {}
      command = 'list'
      if channel:
          command = '{0} -c {1}'.format(command, _cmd_quote(channel))
      lines = _pecl(command).splitlines()
      lines = (l for l in lines if pecl_channel_pat.match(l))
  
      for line in lines:
          match = pecl_channel_pat.match(line)
          if match:
              pecls[match.group(1)] = [match.group(2), match.group(3)]
  
      return peclf list_(channel=None):
      '''
      List installed pecl extensions.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pecl.list
      '''
      pecl_channel_pat = re.compile('^([^ ]+)[ ]+([^ ]+)[ ]+([^ ]+)')
      pecls = {}
      command = 'list'
      if channel:
          command = '{0} -c {1}'.format(command, _cmd_quote(channel))
      lines = _pecl(command).splitlines()
      lines = (l for l in lines if pecl_channel_pat.match(l))
  
      for line in lines:
          match = pecl_channel_pat.match(line)
          if match:
              pecls[match.group(1)] = [match.group(2), match.group(3)]
  
      return pecls
docs: List installed pecl extensions.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' pecl.list