TLDR;
Never ever enable xdebug.remote_autostart in cli
Xdebug is handy extension helps you debug your PHP code. But it slows the performance in cli mode, especially run PHP cli tool like composer or phpunit.
So please disable Xdebug in cli mode or set xdebug.remote_autostart=0
in INI file.