3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new DateTimeImmutable())->modify('next day at midnight'));
based on atogN
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: DateTimeImmutable::modify(): Failed to parse time string (next day at midnight) at position 9 (a): The timezone could not be found in the database in /in/Uet53 on line 3 bool(false)
Output for hhvm-3.15.4
Warning: DateTime::modify(): Failed to parse time string (next day at midnight) at position 9 (a): The timezone could not be found in the database object(DateTimeImmutable)#3 (1) { ["data":"DateTimeImmutable":private]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2017-07-11 15:40:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }