Decoded Output
Download--TEST--
Bug #80998: Missing second with inverted interval
--FILE--
<?php
$date = new DateTime('2021-04-05 14:00:00');
$interval = new DateInterval('P0DT10799S');
$interval->f = 0.999999;
$interval->invert = 1;
$date->add($interval);
$string = $date->format('Y-m-d H:i:s.u');
echo $string, "
";
?>
--EXPECT--
2021-04-05 11:00:00.000001
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | d2b1c538389c44f9 |
|---|---|
| Eval Count | 0 |
| Decode Time | 123 ms |
Original Code
--TEST--
Bug #80998: Missing second with inverted interval
--FILE--
<?php
$date = new DateTime('2021-04-05 14:00:00');
$interval = new DateInterval('P0DT10799S');
$interval->f = 0.999999;
$interval->invert = 1;
$date->add($interval);
$string = $date->format('Y-m-d H:i:s.u');
echo $string, "\n";
?>
--EXPECT--
2021-04-05 11:00:00.000001