3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $expected = new DateTimeImmutable('2015-08-31 01:02:04.456790'); $date = (new DateTimeImmutable('2015-08-31 01:02:03.456789'))->modify('+1000001 microseconds'); var_dump($expected == $date);
Output for 7.2.0 - 7.3.0rc3
bool(true)
Output for 7.1.0 - 7.1.21
bool(false)
Output for 5.6.30, 7.0.0 - 7.0.31
Warning: DateTimeImmutable::modify(): Failed to parse time string (+1000001 microseconds) at position 5 (0): Unexpected character in /in/KB57r on line 4 bool(false)
Output for hhvm-3.22.0
Warning: DateTime::modify(): Failed to parse time string (+1000001 microseconds) at position 5 (0): Unexpected character in /in/KB57r on line -1 bool(false)
Output for hhvm-3.19.2 - 3.21.3
Warning: DateTime::modify(): Failed to parse time string (+1000001 microseconds) at position 5 (0): Unexpected character in /in/KB57r on line 4 bool(false)
Output for hhvm-3.15.4 - 3.18.5
Warning: DateTime::modify(): Failed to parse time string (+1000001 microseconds) at position 5 (0): Unexpected character bool(false)