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 $t1."\t\r\n"; echo $t2."\t\r\n"; echo ($t2 > $t1)."\t\r\n";
based on tIJOv
Output for 5.6.28, 7.0.14 - 7.1.0
1407166673 1407425721 1
Output for 7.0.6
1462002789 1407425721
Output for 7.0.5
1459370631 1407425721
Output for 7.0.4
1457338635 1407425721
Output for 7.0.3
1458032105 1407425721
Output for 7.0.2
1458398918 1407425721
Output for 7.0.1
1458502367 1407425721
Output for 7.0.0
1458767132 1407425721
Output for hhvm-3.12.0
1457521496 1407425721
Output for hhvm-3.10.0
1459070850 1407425721
Output for 5.6.21
1461899638 1407425721
Output for 5.6.20
1459971641 1407425721
Output for 5.6.19
1457108705 1407425721
Output for 5.6.18
1457742119 1407425721
Output for 5.6.17
1458133801 1407425721
Output for 5.6.16
1458859838 1407425721
Output for 5.6.15
1458950154 1407425721
Output for 5.6.14
1459300603 1407425721
Output for 5.6.13
1460437885 1407425721
Output for 5.6.12
1460832967 1407425721
Output for 5.6.11
1461117594 1407425721
Output for 5.6.10
1461296639 1407425721
Output for 5.6.9
1461487309 1407425721
Output for 5.6.8
1461689315 1407425721
Output for 5.5.35
1463641056 1407425721
Output for 5.5.34
1460066465 1407425721
Output for 5.5.33
1457205734 1407425721
Output for 5.5.32
1457920988 1407425721
Output for 5.5.31
1458230150 1407425721
Output for 5.5.30
1459212705 1407425721
Output for 5.5.29
1460575000 1407425721
Output for 5.5.28
1460930503 1407425721
Output for 5.5.27
1461025860 1407425721
Output for 5.5.26
1461391845 1407425721
Output for 5.5.25
1461587332 1407425721
Output for 5.5.24
1463773792 1407425721
Output for 5.4.45
1442571244 1407425721
Output for 5.4.44
1442571239 1407425721
Output for 5.4.43
1442571234 1407425721
Output for 5.4.42
1442571232 1407425721
Output for 5.4.41
1442571229 1407425721
Output for 5.4.40
1442571226 1407425721
Output for 5.4.39
1442571223 1407425721
Output for 5.4.38
1426024161 1407425721
Output for 5.4.37
1426024155 1407425721
Output for 5.4.34 - 5.4.36
1426024154 1407425721
Output for 5.4.32
1408965053 1407425721
Output for 5.4.31
1407166677 1407425721 1
Output for 5.4.9 - 5.4.30
1407166678 1407425721 1
Output for 5.3.17 - 5.3.28, 5.4.0 - 5.4.8
1407166679 1407425721 1
Output for 5.3.29
1408965052 1407425721
Output for 5.2.13 - 5.3.16
1407166680 1407425721 1
Output for 4.4.6 - 4.4.9, 5.0.3 - 5.2.12
1407166681 1407425721 1
Output for 5.0.0 - 5.0.2
1407103200 1407425721 1
Output for 4.3.1 - 4.4.5
1407166682 1407425721 1
Output for 4.3.0
1442571221 1407425721