3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mysql_timestamp = "2014-10-21 12:29:34"; $this_is_new = false; if(strtotime($mysql_timestamp) > strtotime("-60 minutes")) { $this_is_new = true; } var_dump($this_is_new); echo strtotime($mysql_timestamp); echo "\n"; echo strtotime("-60 minutes");
based on EYET9
Output for 5.6.28, 7.0.14 - 7.1.0
bool(false) 1413887374 1413888018
Output for 7.0.6
bool(false) 1413887374 1462260579
Output for 7.0.5
bool(false) 1413887374 1459628112
Output for 7.0.4
bool(false) 1413887374 1457596337
Output for 7.0.3
bool(false) 1413887374 1458289950
Output for 7.0.2
bool(false) 1413887374 1458657051
Output for 7.0.1
bool(false) 1413887374 1458759947
Output for 7.0.0
bool(false) 1413887374 1459024675
Output for 5.6.21
bool(false) 1413887374 1462157337
Output for 5.6.20
bool(false) 1413887374 1460229302
Output for 5.6.19
bool(false) 1413887374 1457366365
Output for 5.6.18
bool(false) 1413887374 1458000400
Output for 5.6.17
bool(false) 1413887374 1458391556
Output for 5.6.16
bool(false) 1413887374 1459114512
Output for 5.6.15
bool(false) 1413887374 1459204227
Output for 5.6.14
bool(false) 1413887374 1459558154
Output for 5.6.13
bool(false) 1413887374 1460695430
Output for 5.6.12
bool(false) 1413887374 1461090741
Output for 5.6.11
bool(false) 1413887374 1461375257
Output for 5.6.10
bool(false) 1413887374 1461554340
Output for 5.6.9
bool(false) 1413887374 1461745083
Output for 5.6.8
bool(false) 1413887374 1461947207
Output for 5.5.35
bool(false) 1413887374 1463899003
Output for 5.5.34
bool(false) 1413887374 1460324132
Output for 5.5.33
bool(false) 1413887374 1457463382
Output for 5.5.32
bool(false) 1413887374 1458178796
Output for 5.5.31
bool(false) 1413887374 1458487861
Output for 5.5.30
bool(false) 1413887374 1459470433
Output for 5.5.29
bool(false) 1413887374 1460832666
Output for 5.5.28
bool(false) 1413887374 1461188918
Output for 5.5.27
bool(false) 1413887374 1461283580
Output for 5.5.26
bool(false) 1413887374 1461649554
Output for 5.5.25
bool(false) 1413887374 1461845420
Output for 5.5.24
bool(false) 1413887374 1464031494
Output for 5.4.45
bool(false) 1413887374 1441555479
Output for 5.4.44
bool(false) 1413887374 1441555476
Output for 4.3.0, 5.4.43
bool(false) 1413887374 1441555473
Output for 5.4.42
bool(false) 1413887374 1436434699
Output for 5.4.41
bool(false) 1413887374 1436434697
Output for 5.4.39 - 5.4.40
bool(false) 1413887374 1436434693
Output for 5.4.38
bool(false) 1413887374 1436434691
Output for 5.4.35 - 5.4.37
bool(false) 1413887374 1436434689
Output for 5.4.32 - 5.4.34
bool(false) 1413887374 1413888021
Output for 5.4.11 - 5.4.31
bool(false) 1413887374 1413888022
Output for 5.3.21 - 5.4.10
bool(false) 1413887374 1413888023
Output for 5.2.17 - 5.3.20
bool(false) 1413887374 1413888024
Output for 5.0.3 - 5.2.16
bool(false) 1413887374 1413888025
Output for 5.0.0 - 5.0.2
bool(true) 1413887374 1413838800
Output for 4.3.1 - 4.4.9
bool(false) 1413887374 1413888026