3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mysql_timestamp = "2014-10-21 11:49: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 strtotime("-60 minutes");
based on MTSh8
Output for 5.6.28, 7.0.14 - 7.1.0
bool(false) 14138849741413887973
Output for 7.0.6
bool(false) 14138849741462260583
Output for 7.0.5
bool(false) 14138849741459628110
Output for 7.0.4
bool(false) 14138849741457596335
Output for 7.0.3
bool(false) 14138849741458289948
Output for 7.0.2
bool(false) 14138849741458657049
Output for 7.0.1
bool(false) 14138849741458759946
Output for 7.0.0
bool(false) 14138849741459024673
Output for 5.6.21
bool(false) 14138849741462157340
Output for 5.6.20
bool(false) 14138849741460229301
Output for 5.6.19
bool(false) 14138849741457366363
Output for 5.6.18
bool(false) 14138849741458000398
Output for 5.6.17
bool(false) 14138849741458391554
Output for 5.6.16
bool(false) 14138849741459114511
Output for 5.6.15
bool(false) 14138849741459204225
Output for 5.6.14
bool(false) 14138849741459558152
Output for 5.6.13
bool(false) 14138849741460695428
Output for 5.6.12
bool(false) 14138849741461090745
Output for 5.6.11
bool(false) 14138849741461375260
Output for 5.6.10
bool(false) 14138849741461554343
Output for 5.6.9
bool(false) 14138849741461745087
Output for 5.6.8
bool(false) 14138849741461947211
Output for 5.5.35
bool(false) 14138849741463899006
Output for 5.5.34
bool(false) 14138849741460324130
Output for 5.5.33
bool(false) 14138849741457463380
Output for 5.5.32
bool(false) 14138849741458178794
Output for 5.5.31
bool(false) 14138849741458487859
Output for 5.5.30
bool(false) 14138849741459470431
Output for 5.5.29
bool(false) 14138849741460832665
Output for 5.5.28
bool(false) 14138849741461188922
Output for 5.5.27
bool(false) 14138849741461283583
Output for 5.5.26
bool(false) 14138849741461649558
Output for 5.5.25
bool(false) 14138849741461845424
Output for 5.5.24
bool(false) 14138849741464031488
Output for 5.4.45
bool(false) 14138849741441555431
Output for 5.4.44
bool(false) 14138849741441555429
Output for 4.3.0, 5.4.43
bool(false) 14138849741441555425
Output for 5.4.42
bool(false) 14138849741436434634
Output for 5.4.41
bool(false) 14138849741436434632
Output for 5.4.39 - 5.4.40
bool(false) 14138849741436434628
Output for 5.4.38
bool(false) 14138849741436434626
Output for 5.4.35 - 5.4.37
bool(false) 14138849741436434624
Output for 5.4.15 - 5.4.34
bool(false) 14138849741413887978
Output for 5.3.25 - 5.4.14
bool(false) 14138849741413887979
Output for 5.3.6 - 5.3.24
bool(false) 14138849741413887980
Output for 5.2.2 - 5.3.5
bool(false) 14138849741413887981
Output for 4.3.2 - 4.4.9, 5.0.3 - 5.2.1
bool(false) 14138849741413887982
Output for 5.0.0 - 5.0.2
bool(true) 14138849741413838800
Output for 4.3.1
bool(false) 14138849741413887983