3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $week = strtotime("1 week"); $halfmonth = strtotime("2 weeks"); var_dump($week < $halfmonth); var_dump($week); var_dump($week < $halfmonth);
based on KRJt7
Output for 5.6.28, 7.0.14 - 7.1.0
bool(true) int(1413902799) bool(true)
Output for 7.0.7
bool(true) int(1413909999) bool(true)
Output for 7.0.6
bool(true) int(1462828893) bool(true)
Output for 7.0.5
bool(true) int(1460199335) bool(true)
Output for 7.0.4
bool(true) int(1458161079) bool(true)
Output for 7.0.3
bool(true) int(1458853741) bool(true)
Output for 7.0.2
bool(true) int(1459148042) bool(true)
Output for 7.0.1
bool(true) int(1459319551) bool(true)
Output for 7.0.0
bool(true) int(1459590356) bool(true)
Output for 5.6.21
bool(true) int(1462724771) bool(true)
Output for 5.6.20
bool(true) int(1460787295) bool(true)
Output for 5.6.19
bool(true) int(1457890940) bool(true)
Output for 5.6.18
bool(true) int(1458540563) bool(true)
Output for 5.6.17
bool(true) int(1458956559) bool(true)
Output for 5.6.16
bool(true) int(1459682896) bool(true)
Output for 5.6.15
bool(true) int(1459772304) bool(true)
Output for 5.6.14
bool(true) int(1460128332) bool(true)
Output for 5.6.13
bool(true) int(1461265731) bool(true)
Output for 5.6.12
bool(true) int(1461658085) bool(true)
Output for 5.6.11
bool(true) int(1461943770) bool(true)
Output for 5.6.10
bool(true) int(1462122414) bool(true)
Output for 5.6.9
bool(true) int(1462312968) bool(true)
Output for 5.6.8
bool(true) int(1462513313) bool(true)
Output for 5.6.7
bool(true) int(1464707576) bool(true)
Output for 5.5.35
bool(true) int(1464463989) bool(true)
Output for 5.5.34
bool(true) int(1460893150) bool(true)
Output for 5.5.33
bool(true) int(1458028370) bool(true)
Output for 5.5.32
bool(true) int(1458665907) bool(true)
Output for 5.5.31
bool(true) int(1459050021) bool(true)
Output for 5.5.30
bool(true) int(1460039465) bool(true)
Output for 5.5.29
bool(true) int(1461401925) bool(true)
Output for 5.5.28
bool(true) int(1461755474) bool(true)
Output for 5.5.27
bool(true) int(1461851940) bool(true)
Output for 5.5.26
bool(true) int(1462216766) bool(true)
Output for 5.5.25
bool(true) int(1462411409) bool(true)
Output for 5.5.24
bool(true) int(1462612180) bool(true)
Output for 5.4.45
bool(true) int(1443444912) bool(true)
Output for 5.4.44
bool(true) int(1440401113) bool(true)
Output for 5.4.43
bool(true) int(1440401109) bool(true)
Output for 5.4.42
bool(true) int(1437024111) bool(true)
Output for 5.4.41
bool(true) int(1437024109) bool(true)
Output for 5.4.40
bool(true) int(1437024105) bool(true)
Output for 5.4.39
bool(true) int(1437024104) bool(true)
Output for 5.4.38
bool(true) int(1437024103) bool(true)
Output for 5.4.37
bool(true) int(1437024101) bool(true)
Output for 5.4.34 - 5.4.36
bool(true) int(1437024100) bool(true)
Output for 5.4.13 - 5.4.32
bool(true) int(1413902804) bool(true)
Output for 5.3.22 - 5.4.12
bool(true) int(1413902805) bool(true)
Output for 5.3.0 - 5.3.21
bool(true) int(1413902806) bool(true)
Output for 5.0.4 - 5.2.17
bool(true) int(1413902807) bool(true)
Output for 4.3.1 - 4.4.9, 5.0.3
bool(true) int(1413902808) bool(true)
Output for 5.0.0 - 5.0.2
bool(true) int(1413842400) bool(true)
Output for 4.3.0
bool(true) int(1443444908) bool(true)