public function getVersion() { static $version; if (!$version) { $version = false; $string = $this->execute(['--version'], false); if ($string && preg_match('/(^| )([0-9]+[^ ]*)/', $string, $matches)) { $version = $matches[2]; } } return $version; }