+ function getPHPInfo( $impl = false ) {
+ if (
+ ( defined( 'HHVM_VERSION' ) && $impl !== 'PHP' ) ||
+ $impl === 'HHVM'
+ ) {
+ return array(
+ 'implementation' => 'HHVM',
+ 'version' => defined( 'HHVM_VERSION' ) ? HHVM_VERSION : 'undefined',
+ 'vendor' => 'Facebook',
+ 'upstreamSupported' => '3.6.5',
+ 'minSupported' => '3.6.5',
+ 'upgradeURL' => 'https://docs.hhvm.com/hhvm/installation/introduction',
+ );
+ }
+ return array(
+ 'implementation' => 'PHP',
+ 'version' => PHP_VERSION,
+ 'vendor' => 'the PHP Group',
+ 'upstreamSupported' => '5.5.0',
+ 'minSupported' => '5.5.9',
+ 'upgradeURL' => 'https://secure.php.net/downloads.php',
+ );