Whoops, the error handler for debugging

Code
<?php

use Whoops\Run;
use 
Whoops\Handler\JsonResponseHandler as Handler;

$whoops = new Run();
// you should see the PrettyPageHandler. it's awesome!
// http://filp.github.io/whoops/screen.png
$whoops->pushHandler(new Handler());
$whoops->register();

// don't directly output on handleException
$whoops->writeToOutput(false);
$whoops->allowQuit(false);

$e = new Exception('Error: no budgies found');

$output $whoops->handleException($e);

echo 
$output;
Result
{"error":{"type":"Exception","message":"Error: no budgies found","file":"/whoops.php","line":16}}
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6