Xdebug always listening for new requests and prevents webpages from loading in case I don’t listen

I have a strange setup on my new workplace and it works like this: if I have PhpStorm running and have “Start Listening for PHP Debug Connections” on, then my local PHP application works fine. As soon as I close PhpStorm completely (and consequently stop listening to PHP debug connections), then my webpage is not loading (nginx times out after a minute).

Create multidimensional array based on value

I’ve spent hours trying to find the answer to this question, but I’m struggling. I’m reasonably familiar with PHP and the various in-built functions, and can build a complex foreach() loop to do this, but I thought I’d ask to see if anyone has a smarter solution to my problem.
I have an array in this form, Now I want to convert this into multidimensional based on list_id matched on next instance.I tried this solution but not worked well https://stackoverflow.com/a/65042103/4626270.
This may be duplicate but not got output here

I am Stuck with the error Class ‘MpdfMpdf’ not found -php pdf creation

i’ve installed mpdf library with command composer require mpdf/mpdf.And it is installed in the location vendor/mpdf/src/Mpdf.php. And composer_autoload is true in configautoload.php.
with the below code, am getting the error Class 'MpdfMpdf' not found. commenting use MpdfMpdf; & uncommenting the lines i’ve commened below shows the error require_once(C:xampphtdocsabcdapplicationcontrollersvendor/mpdf/src/Mpdf.php): failed to open stream: No such file or directory.