How to get current time in milliseconds in PHP? September 22, 2022 by Tarik The short answer is: $milliseconds = floor(microtime(true) * 1000);