You are here

public function Runtime::getVersion in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/sebastian/environment/src/Runtime.php \SebastianBergmann\Environment\Runtime::getVersion()

Return value

string

1 call to Runtime::getVersion()
Runtime::getNameWithVersion in vendor/sebastian/environment/src/Runtime.php

File

vendor/sebastian/environment/src/Runtime.php, line 133

Class

Runtime
Utility class for HHVM/PHP environment handling.

Namespace

SebastianBergmann\Environment

Code

public function getVersion() {
  if ($this
    ->isHHVM()) {
    return HHVM_VERSION;
  }
  else {
    return PHP_VERSION;
  }
}