Description
The following code:
<?php
echo DateTime::createFromTimestamp(1743060675.001)->getMicrosecond()
Resulted in this output:
But I expected this output instead:
When we refer to any number that is supposed to be after the decimal point, leading zeroes matter. In this case because the method returns int, it strips any leading zeroes, making this method around 1 out of 10 times to return incorrect value.
PHP Version
8.4
Operating System
No response