diff --git a/src/SPC/ConsoleApplication.php b/src/SPC/ConsoleApplication.php
index c4ecf50b..b073cd6a 100644
--- a/src/SPC/ConsoleApplication.php
+++ b/src/SPC/ConsoleApplication.php
@@ -16,7 +16,7 @@ use Symfony\Component\Console\Command\ListCommand;
*/
class ConsoleApplication extends Application
{
- public const VERSION = '2.0-rc2';
+ public const VERSION = '2.0-rc3';
/**
* @throws \ReflectionException
diff --git a/src/SPC/command/dev/PhpVerCommand.php b/src/SPC/command/dev/PhpVerCommand.php
new file mode 100644
index 00000000..cdd4cfa6
--- /dev/null
+++ b/src/SPC/command/dev/PhpVerCommand.php
@@ -0,0 +1,33 @@
+no_motd = true;
+ parent::initialize($input, $output);
+ }
+
+ public function handle(): int
+ {
+ // Find php from source/php-src
+ $file = SOURCE_PATH . '/php-src/main/php_version.h';
+ $result = preg_match('/#define PHP_VERSION "(\d+\.\d+\.\d+)"/', file_get_contents($file), $match);
+ if ($result === false) {
+ $this->output->writeln('PHP source not found, maybe you need to extract first ?');
+ return 1;
+ }
+ $this->output->writeln('' . $match[1] . '');
+ return 0;
+ }
+}