Php 8 mongodb cursor very slow?

In my PHP 8 application, with latest MONGODB (4.4). I was able to do an aggregate query and i get my result in 8 seconds which is decent.But when i use the PHP-MONGO cursor to get the data out,the script take another 100 seconds to give me the result.There are 15000 records and i m not doing anything inside the cursor loop. just assigning it to a variable.i tried $cursor->toArray(),foreach both give me same time. Do anyone else face the same problem?can anyone help me regarding this problem.