code: public static function getCpuCores()
  		{
  			$wmi    = Windows::getInstance();
  			$object = $wmi->ExecQuery("SELECT NumberOfLogicalProcessors FROM Win32_Processor");
  
  			$cores = 0;
  			foreach ($object as $obj) {
  				$cores = $obj->NumberOfLogicalProcessors;
  			}
  
  			return $cores;
  		}
docs: Gets total number of cores
  
  @return integer