3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sec = 1; $getcurrentDate = date("Y-m-d H:i:s", time()); $finaldate = strtotime ( '+'.$sec.' second', strtotime ($getcurrentDate)) ; echo $finaldate; ?>
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.3.4, 5.3.6 - 7.1.0
1372983492
Output for 5.3.5
1372983491
Output for 5.0.0 - 5.0.2
1372975201