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)); echo "\n"; echo date('Y_m_d_H_', strtotime( '' )); echo "\n"; echo sprintf("%05d", (floor(date('i', strtotime( '-13 minutes' )) / ROTATE_PERIOD) * ROTATE_PERIOD)); echo "\n"; echo strtotime( '-1 days' );
based on r7Z0X
Output for 5.4.0 - 7.2.0
2015_11_02_23_16 1970_01_01_01_ 00002 1446416202