PHPExcel. Incorrectly formed. XLS file. What's the problem?

Form a xls file using PHPExcel.

Code form the file:

// Create an object of class PHPExcel
$xls = new PHPExcel();
// Set the index of the active sheet
// Get the active sheet
$sheet = $xls->getActiveSheet();
// Signed sheet

// Print the HTTP headers
header ( "Expires: Mon, 1 Apr 1974 05:00:00 GMT" );
header ( "Last-Modified:" . gmdate("D,d M YH:i:s") . "GMT" );
header ( "Cache-Control: no-cache, must-revalidate" );
header ( "Pragma: no-cache" );
header ( "Content-type: application/" );
header ( "Content-Disposition: attachment; filename=report.xls" );

// Print the contents of the file
$objWriter = new PHPExcel_Writer_Excel5($xls);

The output is some kind of crap like this:

When opening the file displays the following window:

Prompt who faced with: what's the problem?
June 5th 19 at 21:39
1 answer
June 5th 19 at 21:41
This library is no longer supported . Try it

Find more questions by tags PHPPhpSpreadsheet