3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $week = strtotime("1 week"); $halfmonth = strtotime("2 weeks"); var_dump($week < $halfmonth); var_dump($halfmonth); var_dump($week < $halfmonth);
based on AukXJ
Output for 5.6.28, 7.0.14 - 7.1.7
bool(true) int(1414511233) bool(true)
Output for 7.0.6
bool(true) int(1463457360) bool(true)
Output for 7.0.5
bool(true) int(1460826017) bool(true)
Output for 7.0.4
bool(true) int(1458791914) bool(true)
Output for 7.0.3
bool(true) int(1459480869) bool(true)
Output for 7.0.2
bool(true) int(1459777664) bool(true)
Output for 7.0.1
bool(true) int(1459952639) bool(true)
Output for 7.0.0
bool(true) int(1460218158) bool(true)
Output for 5.6.21
bool(true) int(1463353856) bool(true)
Output for 5.6.20
bool(true) int(1461413814) bool(true)
Output for 5.6.19
bool(true) int(1458533006) bool(true)
Output for 5.6.18
bool(true) int(1459180856) bool(true)
Output for 5.6.17
bool(true) int(1459583034) bool(true)
Output for 5.6.16
bool(true) int(1460310908) bool(true)
Output for 5.6.15
bool(true) int(1460400475) bool(true)
Output for 5.6.14
bool(true) int(1460755113) bool(true)
Output for 5.6.13
bool(true) int(1461892829) bool(true)
Output for 5.6.12
bool(true) int(1462286983) bool(true)
Output for 5.6.11
bool(true) int(1462571088) bool(true)
Output for 5.6.10
bool(true) int(1462750663) bool(true)
Output for 5.6.9
bool(true) int(1462941492) bool(true)
Output for 5.6.8
bool(true) int(1463142568) bool(true)
Output for 5.6.7
bool(true) int(1465353644) bool(true)
Output for 5.5.35
bool(true) int(1465094869) bool(true)
Output for 5.5.34
bool(true) int(1461521640) bool(true)
Output for 5.5.33
bool(true) int(1458658437) bool(true)
Output for 5.5.32
bool(true) int(1459367454) bool(true)
Output for 5.5.31
bool(true) int(1459679676) bool(true)
Output for 5.5.30
bool(true) int(1460666953) bool(true)
Output for 5.5.29
bool(true) int(1462029958) bool(true)
Output for 5.5.28
bool(true) int(1462384329) bool(true)
Output for 5.5.27
bool(true) int(1462479055) bool(true)
Output for 5.5.26
bool(true) int(1462845695) bool(true)
Output for 5.5.25
bool(true) int(1463039955) bool(true)
Output for 5.5.24
bool(true) int(1465225060) bool(true)
Output for 5.4.45
bool(true) int(1444049713) bool(true)
Output for 5.4.44
bool(true) int(1441005814) bool(true)
Output for 5.4.43
bool(true) int(1441005810) bool(true)
Output for 5.4.42
bool(true) int(1437628789) bool(true)
Output for 5.4.41
bool(true) int(1437628787) bool(true)
Output for 5.4.39 - 5.4.40
bool(true) int(1437628783) bool(true)
Output for 5.4.38
bool(true) int(1437628781) bool(true)
Output for 5.4.37
bool(true) int(1437628779) bool(true)
Output for 5.4.34 - 5.4.36
bool(true) int(1437628778) bool(true)
Output for 5.4.19 - 5.4.32
bool(true) int(1414511237) bool(true)
Output for 5.3.28 - 5.4.18
bool(true) int(1414511238) bool(true)
Output for 5.3.7 - 5.3.27
bool(true) int(1414511239) bool(true)
Output for 5.1.6 - 5.3.6
bool(true) int(1414511240) bool(true)
Output for 4.3.1 - 4.4.9, 5.0.3 - 5.1.5
bool(true) int(1414511241) bool(true)
Output for 5.0.0 - 5.0.2
bool(true) int(1414450800) bool(true)
Output for 4.3.0
bool(true) int(1444049709) bool(true)