diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php
index 32b9d7140..d8977493d 100644
--- a/src/Composer/Command/DiagnoseCommand.php
+++ b/src/Composer/Command/DiagnoseCommand.php
@@ -150,6 +150,14 @@ EOT
$this->outputResult($this->checkVersion($config));
}
+ $io->write(sprintf('Composer version: %s', Composer::VERSION));
+
+ $io->write(sprintf('PHP version: %s', PHP_VERSION));
+
+ if (defined('PHP_BINARY')) {
+ $io->write(sprintf('PHP binary path: %s', PHP_BINARY));
+ }
+
return $this->exitCode;
}