I have some scripts running showing a website, and on my macbook, with php 7.1 installed + xdebug, if I don't put an exit at the end of my script, php takes very long to finish executing.
This code works normally:
<?php
$start = microtime(true);
// many many code
exit(microtime(true) - $start);
// exits 0.2
This code is ending very slowly:
<?php
// many many code
echo microtime(true) - $start; // echoes 0.2s
// but the script need about 10.4s to finish (quite long and changing time)
I don't have any code after the exit, so it's really the end of my script...
This is not happening on windows nor on linux. What's wrong about my setup?