3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $duration = 2; $t_time = 1411387095 ; $then = time() - $duration*60; echo date('Y-m-d H:i:s',$t_time).'<br/>'; echo date('Y-m-d H:i:s',$then ).'<br/>';
based on q15YI
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
2014-09-22 13:58:15<br/>2014-09-22 14:06:44<br/>