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); var_dump($week < $halfmonth);
based on oar2p
Output for 5.6.28, 7.0.14 - 7.2.0
bool(true) int(1414511384) int(1413902984) bool(true)
Output for 7.0.6
bool(true) int(1463473524) int(1462868724) bool(true)
Output for 7.0.5
bool(true) int(1460841084) int(1460236284) bool(true)
Output for 7.0.4
bool(true) int(1458809274) int(1458204474) bool(true)
Output for 7.0.3
bool(true) int(1459499269) int(1458898069) bool(true)
Output for 7.0.2
bool(true) int(1459866380) int(1459261580) bool(true)
Output for 7.0.1
bool(true) int(1459969295) int(1459364495) bool(true)
Output for 7.0.0
bool(true) int(1460234038) int(1459629238) bool(true)
Output for 5.6.21
bool(true) int(1463370281) int(1462765481) bool(true)
Output for 5.6.20
bool(true) int(1461442261) int(1460837461) bool(true)
Output for 5.6.19
bool(true) int(1458579316) int(1457974516) bool(true)
Output for 5.6.18
bool(true) int(1459209699) int(1458608499) bool(true)
Output for 5.6.17
bool(true) int(1459600886) int(1458999686) bool(true)
Output for 5.6.16
bool(true) int(1460327463) int(1459722663) bool(true)
Output for 5.6.15
bool(true) int(1460417182) int(1459812382) bool(true)
Output for 5.6.14
bool(true) int(1460771121) int(1460166321) bool(true)
Output for 5.6.13
bool(true) int(1461908384) int(1461303584) bool(true)
Output for 5.6.12
bool(true) int(1462303683) int(1461698883) bool(true)
Output for 5.6.11
bool(true) int(1462588199) int(1461983399) bool(true)
Output for 5.6.10
bool(true) int(1462767287) int(1462162487) bool(true)
Output for 5.6.9
bool(true) int(1462958037) int(1462353237) bool(true)
Output for 5.6.8
bool(true) int(1463160137) int(1462555337) bool(true)
Output for 5.5.35
bool(true) int(1465111945) int(1464507145) bool(true)
Output for 5.5.34
bool(true) int(1461537071) int(1460932271) bool(true)
Output for 5.5.33
bool(true) int(1458676331) int(1458071531) bool(true)
Output for 5.5.32
bool(true) int(1459388118) int(1458786918) bool(true)
Output for 5.5.31
bool(true) int(1459697200) int(1459092400) bool(true)
Output for 5.5.30
bool(true) int(1460683386) int(1460078586) bool(true)
Output for 5.5.29
bool(true) int(1462045619) int(1461440819) bool(true)
Output for 5.5.28
bool(true) int(1462401844) int(1461797044) bool(true)
Output for 5.5.27
bool(true) int(1462496497) int(1461891697) bool(true)
Output for 5.5.26
bool(true) int(1462862486) int(1462257686) bool(true)
Output for 5.5.25
bool(true) int(1463058007) int(1462453207) bool(true)
Output for 5.5.24
bool(true) int(1465244403) int(1464639603) bool(true)
Output for 5.4.45
bool(true) int(1444049715) int(1443444915) bool(true)
Output for 5.4.44
bool(true) int(1441005803) int(1440401003) bool(true)
Output for 5.4.43
bool(true) int(1441005798) int(1440400998) bool(true)
Output for 5.4.42
bool(true) int(1437628818) int(1437024018) bool(true)
Output for 5.4.41
bool(true) int(1437628817) int(1437024017) bool(true)
Output for 5.4.39 - 5.4.40
bool(true) int(1437628812) int(1437024012) bool(true)
Output for 5.4.38
bool(true) int(1437628810) int(1437024010) bool(true)
Output for 5.4.35 - 5.4.37
bool(true) int(1437628808) int(1437024008) bool(true)
Output for 5.4.34
bool(true) int(1437628807) int(1437024007) bool(true)
Output for 5.4.20 - 5.4.32
bool(true) int(1414511388) int(1413902988) bool(true)
Output for 5.3.28 - 5.4.19
bool(true) int(1414511389) int(1413902989) bool(true)
Output for 5.3.7 - 5.3.27
bool(true) int(1414511390) int(1413902990) bool(true)
Output for 5.2.0 - 5.3.6
bool(true) int(1414511391) int(1413902991) bool(true)
Output for 4.3.1 - 4.4.9, 5.0.3 - 5.1.6
bool(true) int(1414511392) int(1413902992) bool(true)
Output for 5.0.0 - 5.0.2
bool(true) int(1414450800) int(1413842400) bool(true)
Output for 4.3.0
bool(true) int(1444049710) int(1443444910) bool(true)