3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( strtotime('+ 3 days'), strtotime('2012-04-08 14:23:52') ); var_dump((new DateTime('@1403171054'))->format('Y-m-d'));
Output for 5.6.28, 7.0.14 - 7.1.0
int(1403172578) int(1333887832) string(10) "2014-06-19"
Output for 7.0.6
int(1462545257) int(1333887832) string(10) "2014-06-19"
Output for 7.0.5
int(1459911920) int(1333887832) string(10) "2014-06-19"
Output for 7.0.4
int(1457883665) int(1333887832) string(10) "2014-06-19"
Output for 7.0.3
int(1458577482) int(1333887832) string(10) "2014-06-19"
Output for 7.0.2
int(1458945086) int(1333887832) string(10) "2014-06-19"
Output for 7.0.1
int(1459043004) int(1333887832) string(10) "2014-06-19"
Output for 7.0.0
int(1459309222) int(1333887832) string(10) "2014-06-19"
Output for hhvm-3.12.0
int(1458090955) int(1333887832) string(10) "2014-06-19"
Output for hhvm-3.10.0
int(1459629260) int(1333887832) string(10) "2014-06-19"
Output for 5.6.21
int(1462441478) int(1333887832) string(10) "2014-06-19"
Output for 5.6.20
int(1460512998) int(1333887832) string(10) "2014-06-19"
Output for 5.6.19
int(1457652503) int(1333887832) string(10) "2014-06-19"
Output for 5.6.18
int(1458289258) int(1333887832) string(10) "2014-06-19"
Output for 5.6.17
int(1458677607) int(1333887832) string(10) "2014-06-19"
Output for 5.6.16
int(1459398491) int(1333887832) string(10) "2014-06-19"
Output for 5.6.15
int(1459487957) int(1333887832) string(10) "2014-06-19"
Output for 5.6.14
int(1459840596) int(1333887832) string(10) "2014-06-19"
Output for 5.6.13
int(1460979178) int(1333887832) string(10) "2014-06-19"
Output for 5.6.12
int(1461376684) int(1333887832) string(10) "2014-06-19"
Output for 5.6.11
int(1461659382) int(1333887832) string(10) "2014-06-19"
Output for 5.6.10
int(1461839084) int(1333887832) string(10) "2014-06-19"
Output for 5.6.9
int(1462030348) int(1333887832) string(10) "2014-06-19"
Output for 5.6.8
int(1462234588) int(1333887832) string(10) "2014-06-19"
Output for 5.5.35
int(1464189309) int(1333887832) string(10) "2014-06-19"
Output for 5.5.34
int(1460607440) int(1333887832) string(10) "2014-06-19"
Output for 5.5.33
int(1457749744) int(1333887832) string(10) "2014-06-19"
Output for 5.5.32
int(1458475384) int(1333887832) string(10) "2014-06-19"
Output for 5.5.31
int(1458774248) int(1333887832) string(10) "2014-06-19"
Output for 5.5.30
int(1459753987) int(1333887832) string(10) "2014-06-19"
Output for 5.5.29
int(1461117382) int(1333887832) string(10) "2014-06-19"
Output for 5.5.28
int(1461474579) int(1333887832) string(10) "2014-06-19"
Output for 5.5.27
int(1461567907) int(1333887832) string(10) "2014-06-19"
Output for 5.5.26
int(1461935133) int(1333887832) string(10) "2014-06-19"
Output for 5.5.25
int(1462132425) int(1333887832) string(10) "2014-06-19"
Output for 5.5.24
int(1464316797) int(1333887832) string(10) "2014-06-19"
Output for 5.4.45
int(1442497820) int(1333887832) string(10) "2014-06-19"
Output for 5.4.44
int(1442497817) int(1333887832) string(10) "2014-06-19"
Output for 5.4.43
int(1442497813) int(1333887832) string(10) "2014-06-19"
Output for 5.4.42
int(1442497811) int(1333887832) string(10) "2014-06-19"
Output for 5.4.41
int(1442497809) int(1333887832) string(10) "2014-06-19"
Output for 5.4.40
int(1442497808) int(1333887832) string(10) "2014-06-19"
Output for 5.4.39
int(1442497806) int(1333887832) string(10) "2014-06-19"
Output for 5.4.38
int(1425695492) int(1333887832) string(10) "2014-06-19"
Output for 5.4.36 - 5.4.37
int(1425695486) int(1333887832) string(10) "2014-06-19"
Output for 5.4.34 - 5.4.35
int(1425695485) int(1333887832) string(10) "2014-06-19"
Output for 5.4.32
int(1410818428) int(1333887832) string(10) "2014-06-19"
Output for 5.4.31
int(1410818427) int(1333887832) string(10) "2014-06-19"
Output for 5.4.30
int(1410818425) int(1333887832) string(10) "2014-06-19"
Output for 5.4.24 - 5.4.29
int(1403172581) int(1333887832) string(10) "2014-06-19"
Output for 5.4.10 - 5.4.23
int(1403172582) int(1333887832) string(10) "2014-06-19"
Output for 5.4.0 - 5.4.9
int(1403172583) int(1333887832) string(10) "2014-06-19"
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/bNsKq on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/bNsKq on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/bNsKq on line 7
Process exited with code 255.