When I echo var_dump($_variable), I get one long, wrapping line with all varable\'s and values like
[\"kt_login_user\"]=> string(8) \"teacher1\" [\"kt_lo
Personally I like the replacement function provided by Symfony's var dumper component
Install with composer require symfony/var-dumper and just use dump($var)
composer require symfony/var-dumper
dump($var)
It takes care of the rest. I believe there's also a bit of JS injected there to allow you to interact with the output a bit.