Testing "2286-11-20 17:46:39.999994" with given precision (-1)
string(17) "9999999999.999994"
string(17) "9999999999.999994"
bool(true)
Testing "2286-11-20 17:46:39.999995" with given precision (-1)
string(17) "9999999999.999995"
string(17) "9999999999.999994"
bool(false)
Testing with adjusted precision (16)
string(17) "9999999999.999995"
string(17) "9999999999.999994"
bool(false)
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15)
/bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 7.0.33
Testing "2286-11-20 17:46:39.999994" with given precision (-1)
string(17) "9999999999.999994"
string(11) "10000000000"
bool(false)
Testing with adjusted precision (16)
string(17) "9999999999.999994"
string(11) "10000000000"
bool(false)
Fatal error: Uncaught TypeError: Return value of {closure}() must be an instance of void, none returned in /in/0jE0W:31
Stack trace:
#0 /in/0jE0W(38): {closure}('9999999999.9999...', -1)
#1 {main}
thrown in /in/0jE0W on line 31
Process exited with code 255.