For the first question, yes; there are several system functions (listed in the manual under "Program Execution").
For the second question, yes; the Inline_C package at pear.php.net is supposed to do this (but note that it's pretty old and still only at 0.1).