3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d1 = '2014-08-05 20:30:11'; $d2 = '2014-08-07 17:35:21'; $t1 = strtotime($d1); $t1 = strtotime('3 days ago'); $t2 = strtotime($d2); echo date('H:i:s - d/m/Y', $t1)."\t\r\n"; echo date('H:i:s - d/m/Y', $t2)."\t\r\n"; echo ($t2 > $t1)."\t\r\n";
based on dMHsa
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
17:38:40 - 04/08/2014 17:35:21 - 07/08/2014 1
Output for 5.0.0 - 5.0.2
00:00:00 - 04/08/2014 17:35:21 - 07/08/2014 1