3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(date('Y-m-d H:i:s', strtotime('now +2.5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2,5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +2 5 hours'))); var_dump(date('Y-m-d H:i:s', strtotime('now +7 hours')));
Output for 5.6.28, 7.0.14 - 7.1.0
string(19) "2014-04-02 15:03:54" string(19) "2014-04-02 15:03:54" string(19) "2014-04-02 15:03:54" string(19) "2014-04-02 17:03:54"
Output for 5.1.0 - 5.6.23, hhvm-3.10.0, 7.0.0 - 7.0.8
string(19) "2014-04-02 14:51:06" string(19) "2014-04-02 14:51:06" string(19) "2014-04-02 14:51:06" string(19) "2014-04-02 16:51:06"
Output for hhvm-3.12.0
string(19) "2014-04-02 14:51:07" string(19) "2014-04-02 14:51:07" string(19) "2014-04-02 14:51:07" string(19) "2014-04-02 16:51:07"
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
string(19) "1970-01-01 00:59:59" string(19) "1970-01-01 00:59:59" string(19) "1970-01-01 00:59:59" string(19) "2014-04-02 16:51:06"
Output for 5.0.0 - 5.0.2
string(19) "1970-01-01 00:59:59" string(19) "1970-01-01 00:59:59" string(19) "1970-01-01 00:59:59" string(19) "2014-04-02 07:00:00"