3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((int)strtotime(null) + (29 * 24 * 60 * 60), (int)strtotime('') + (29 * 24 * 60 * 60), strtotime('-31 days') + ( 29 * 24 * 60 * 60) <= time());
Output for 5.1.2 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6
int(2505600) int(2505600) bool(true)
Output for 5.1.0 - 5.1.1
int(1413414335) int(1413414335) bool(true)
Output for 5.0.1 - 5.0.5
Warning: strtotime(): Called with an empty time parameter. in /in/GDJI7 on line 3 Warning: strtotime(): Called with an empty time parameter. in /in/GDJI7 on line 3 int(2505599) int(2505599) bool(true)
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0
Notice: strtotime(): Called with empty time parameter in /in/GDJI7 on line 3 Notice: strtotime(): Called with empty time parameter in /in/GDJI7 on line 3 int(1413410400) int(1413410400) bool(true)
Output for 4.3.0 - 4.3.1
Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/GDJI7 on line 3 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/GDJI7 on line 3 int(1413410400) int(1413410400) bool(true)

preferences:
133.61 ms | 402 KiB | 212 Q