What you might try to do is send the result to a text file like
$test = RUN "%windir%\system32\php.exe %windir%\system32\test.php > c:\php.txt"

Then you can read the file out by

$rc = open(2,"c:\php.txt",2)
$php = readline(2)
$rc = close(2)
_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!