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($halfmonth); var_dump($week < $halfmonth);
based on 5BngN
Output for 5.6.28, 7.0.14 - 7.1.0
bool(true) int(1413902818) int(1414511218) bool(true)
Output for 7.0.7
bool(true) int(1413910018) int(1414518418) bool(true)
Output for 7.0.6
bool(true) int(1462828903) int(1463433703) bool(true)
Output for 7.0.5
bool(true) int(1460199345) int(1460804145) bool(true)
Output for 7.0.4
bool(true) int(1458161098) int(1458765898) bool(true)
Output for 7.0.3
bool(true) int(1458853750) int(1459454950) bool(true)
Output for 7.0.2
bool(true) int(1459148052) int(1459752852) bool(true)
Output for 7.0.1
bool(true) int(1459319562) int(1459924362) bool(true)
Output for 7.0.0
bool(true) int(1459590365) int(1460195165) bool(true)
Output for hhvm-3.12.0
bool(true) int(1458258716) int(1458863516) bool(true)
Output for hhvm-3.10.0
bool(true) int(1459862154) int(1460466954) bool(true)
Output for 5.6.21
bool(true) int(1462724782) int(1463329582) bool(true)
Output for 5.6.20
bool(true) int(1460787304) int(1461392104) bool(true)
Output for 5.6.19
bool(true) int(1457890953) int(1458495753) bool(true)
Output for 5.6.18
bool(true) int(1458540573) int(1459141773) bool(true)
Output for 5.6.17
bool(true) int(1458956571) int(1459557771) bool(true)
Output for 5.6.16
bool(true) int(1459682906) int(1460287706) bool(true)
Output for 5.6.15
bool(true) int(1459772313) int(1460377113) bool(true)
Output for 5.6.14
bool(true) int(1460128342) int(1460733142) bool(true)
Output for 5.6.13
bool(true) int(1461265740) int(1461870540) bool(true)
Output for 5.6.12
bool(true) int(1461658093) int(1462262893) bool(true)
Output for 5.6.11
bool(true) int(1461943780) int(1462548580) bool(true)
Output for 5.6.10
bool(true) int(1462122423) int(1462727223) bool(true)
Output for 5.6.9
bool(true) int(1462312980) int(1462917780) bool(true)
Output for 5.6.8
bool(true) int(1462513324) int(1463118124) bool(true)
Output for 5.6.7
bool(true) int(1464707585) int(1465312385) bool(true)
Output for 5.5.35
bool(true) int(1464463999) int(1465068799) bool(true)
Output for 5.5.34
bool(true) int(1460893158) int(1461497958) bool(true)
Output for 5.5.33
bool(true) int(1458028381) int(1458633181) bool(true)
Output for 5.5.32
bool(true) int(1458665916) int(1459267116) bool(true)
Output for 5.5.31
bool(true) int(1459050033) int(1459654833) bool(true)
Output for 5.5.30
bool(true) int(1460039477) int(1460644277) bool(true)
Output for 5.5.29
bool(true) int(1461401935) int(1462006735) bool(true)
Output for 5.5.28
bool(true) int(1461755484) int(1462360284) bool(true)
Output for 5.5.27
bool(true) int(1461851947) int(1462456747) bool(true)
Output for 5.5.26
bool(true) int(1462216775) int(1462821575) bool(true)
Output for 5.5.25
bool(true) int(1462411419) int(1463016219) bool(true)
Output for 5.5.24
bool(true) int(1462612189) int(1463216989) bool(true)
Output for 5.4.45
bool(true) int(1443444913) int(1444049713) bool(true)
Output for 5.4.44
bool(true) int(1440401104) int(1441005904) bool(true)
Output for 5.4.43
bool(true) int(1440401100) int(1441005900) bool(true)
Output for 5.4.42
bool(true) int(1437024119) int(1437628919) bool(true)
Output for 5.4.41
bool(true) int(1437024117) int(1437628917) bool(true)
Output for 5.4.40
bool(true) int(1437024113) int(1437628913) bool(true)
Output for 5.4.39
bool(true) int(1437024112) int(1437628912) bool(true)
Output for 5.4.38
bool(true) int(1437024111) int(1437628911) bool(true)
Output for 5.4.36 - 5.4.37
bool(true) int(1437024109) int(1437628909) bool(true)
Output for 5.4.34 - 5.4.35
bool(true) int(1437024108) int(1437628908) bool(true)
Output for 5.4.21 - 5.4.32
bool(true) int(1413902822) int(1414511222) bool(true)
Output for 5.4.1 - 5.4.20
bool(true) int(1413902823) int(1414511223) bool(true)
Output for 5.3.12 - 5.4.0
bool(true) int(1413902824) int(1414511224) bool(true)
Output for 5.2.5 - 5.3.11
bool(true) int(1413902825) int(1414511225) bool(true)
Output for 4.3.5 - 4.4.9, 5.0.3 - 5.2.4
bool(true) int(1413902826) int(1414511226) bool(true)
Output for 5.0.0 - 5.0.2
bool(true) int(1413842400) int(1414450800) bool(true)
Output for 4.3.1 - 4.3.4
bool(true) int(1413902827) int(1414511227) bool(true)
Output for 4.3.0
bool(true) int(1443444909) int(1444049709) bool(true)