3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('ROTATE_PERIOD', 2); echo date('Y_m_d_H_') . sprintf("%02d", (floor(date('i') / ROTATE_PERIOD) * ROTATE_PERIOD));
based on Bi2VD
Output for 5.6.28, 7.0.20 - 7.2.0
2015_11_02_22_28
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
2015_11_02_17_08