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 "\n"; echo strtotime("-60 minutes");
based on k35Ra
Output for 5.6.28, 7.0.14 - 7.1.0
bool(false) 1413884974 1413887986
Output for 7.0.6
bool(false) 1413884974 1462260577
Output for 7.0.5
bool(false) 1413884974 1459628110
Output for 7.0.4
bool(false) 1413884974 1457596335
Output for 7.0.3
bool(false) 1413884974 1458289947
Output for 7.0.2
bool(false) 1413884974 1458657049
Output for 7.0.1
bool(false) 1413884974 1458759945
Output for 7.0.0
bool(false) 1413884974 1459024673
Output for hhvm-3.12.0
bool(false) 1413884974 1457781647
Output for hhvm-3.10.0

Process exited with code 137.
Output for 5.6.21
bool(false) 1413884974 1462157334
Output for 5.6.20
bool(false) 1413884974 1460229300
Output for 5.6.19
bool(false) 1413884974 1457366363
Output for 5.6.18
bool(false) 1413884974 1458000398
Output for 5.6.17
bool(false) 1413884974 1458391553
Output for 5.6.16
bool(false) 1413884974 1459114510
Output for 5.6.15
bool(false) 1413884974 1459204224
Output for 5.6.14
bool(false) 1413884974 1459558152
Output for 5.6.13
bool(false) 1413884974 1460695427
Output for 5.6.12
bool(false) 1413884974 1461090739
Output for 5.6.11
bool(false) 1413884974 1461375255
Output for 5.6.10
bool(false) 1413884974 1461554338
Output for 5.6.9
bool(false) 1413884974 1461745082
Output for 5.6.8
bool(false) 1413884974 1461947205
Output for 5.5.35
bool(false) 1413884974 1463899001
Output for 5.5.34
bool(false) 1413884974 1460324129
Output for 5.5.33
bool(false) 1413884974 1457463380
Output for 5.5.32
bool(false) 1413884974 1458178794
Output for 5.5.31
bool(false) 1413884974 1458487859
Output for 5.5.30
bool(false) 1413884974 1459470430
Output for 5.5.29
bool(false) 1413884974 1460832665
Output for 5.5.28
bool(false) 1413884974 1461188916
Output for 5.5.27
bool(false) 1413884974 1461283578
Output for 5.5.26
bool(false) 1413884974 1461649552
Output for 5.5.25
bool(false) 1413884974 1461845418
Output for 5.5.24
bool(false) 1413884974 1464031492
Output for 5.4.45
bool(false) 1413884974 1441555412
Output for 5.4.44
bool(false) 1413884974 1441555409
Output for 4.3.0, 5.4.43
bool(false) 1413884974 1441555405
Output for 5.4.42
bool(false) 1413884974 1436434654
Output for 5.4.41
bool(false) 1413884974 1436434653
Output for 5.4.40
bool(false) 1413884974 1436434649
Output for 5.4.39
bool(false) 1413884974 1436434648
Output for 5.4.38
bool(false) 1413884974 1436434647
Output for 5.4.37
bool(false) 1413884974 1436434645
Output for 5.4.35 - 5.4.36
bool(false) 1413884974 1436434644
Output for 5.4.21 - 5.4.34
bool(false) 1413884974 1413887991
Output for 5.4.0 - 5.4.20
bool(false) 1413884974 1413887992
Output for 5.3.10 - 5.3.29
bool(false) 1413884974 1413887993
Output for 5.2.4 - 5.3.9
bool(false) 1413884974 1413887994
Output for 4.3.2 - 4.4.9, 5.0.3 - 5.2.3
bool(false) 1413884974 1413887995
Output for 5.0.0 - 5.0.2
bool(true) 1413884974 1413838800
Output for 4.3.1
bool(false) 1413884974 1413887996