3v4l.org

run code in 300+ PHP versions simultaneously
<?php $week = strtotime("+1 week"); $halfmonth = strtotime("+2 weeks"); var_dump($week < $halfmonth); var_dump($halfmonth); var_dump($week < $halfmonth);
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
bool(true) int(1414511368) bool(true)
Output for 7.3.32 - 7.3.33, 8.0.13
bool(true) int(1414507768) bool(true)
Output for 5.3.28 - 5.3.29
bool(true) int(1445880340) bool(true)
Output for 5.3.20 - 5.3.27
bool(true) int(1445880341) bool(true)
Output for 5.3.11 - 5.3.19
bool(true) int(1445880342) bool(true)
Output for 5.3.3 - 5.3.10
bool(true) int(1445880343) bool(true)
Output for 5.2.11 - 5.2.17, 5.3.0 - 5.3.2
bool(true) int(1445880344) bool(true)
Output for 5.2.0 - 5.2.10
bool(true) int(1445880345) bool(true)
Output for 5.0.3 - 5.0.5, 5.1.0 - 5.1.6
bool(true) int(1445880346) bool(true)
Output for 5.0.0 - 5.0.2
bool(true) int(1445814000) bool(true)
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9
bool(true) int(1445880347) bool(true)
Output for 4.3.0 - 4.3.9
bool(true) int(1445880348) bool(true)

preferences:
262.02 ms | 401 KiB | 460 Q