passthru() doesn't return anything -- it simply displays the raw output of the command. That is to say PHP doesn't have any idea what data it returns. There are five other ways in PHP to execute programs, including backticks. Read about them here:
http://www.php.net/manual/en/ref.exec.php
And if you have some PHP code in a string and want to evaluate it, use eval().