3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new \DateTimeImmutable(); echo $now->setTime((int) $now->modify('next hour')->format('G'), 0)->format('Y-m-d H:i:s');
based on Bt9gn
Output for 5.5.0 - 7.3.0
2015-12-07 21:00:00
Output for 5.3.20 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/a8gGf on line 3
Process exited with code 255.