3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = (new \DateTime('02 Feb 2014 14:34'))->getTimestamp(); $now = (new \DateTime())->getTimestamp(); var_dump(['start' => $start, 'now' => $now]);
Output for 5.6.28, 7.0.20 - 7.2.0
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808694) }
Output for 7.0.6
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1462292786) }
Output for 7.0.5
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459659111) }
Output for 7.0.4
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1457631505) }
Output for 7.0.3
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458326805) }
Output for 7.0.2
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458694447) }
Output for 7.0.1
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458794039) }
Output for 7.0.0
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459056613) }
Output for 5.6.21
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1462188941) }
Output for 5.6.20
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1460260270) }
Output for 5.6.19
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1457401786) }
Output for 5.6.18
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458037979) }
Output for 5.6.17
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458425559) }
Output for 5.6.16
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459145854) }
Output for 5.6.15
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459235292) }
Output for 5.6.14
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459587563) }
Output for 5.6.13
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1460726610) }
Output for 5.6.12
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461124353) }
Output for 5.6.11
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461492885) }
Output for 5.6.10
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461586674) }
Output for 5.6.9
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461778080) }
Output for 5.6.8
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461982809) }
Output for 5.5.35
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1463942466) }
Output for 5.5.34
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1460354577) }
Output for 5.5.33
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1457497956) }
Output for 5.5.32
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458224893) }
Output for 5.5.31
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1458522859) }
Output for 5.5.30
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1459501306) }
Output for 5.5.29
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1460864807) }
Output for 5.5.28
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461222383) }
Output for 5.5.27
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461315184) }
Output for 5.5.26
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461682833) }
Output for 5.5.25
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1461880391) }
Output for 5.5.24
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1464063966) }
Output for 5.4.41 - 5.4.45
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808704) }
Output for 5.4.34 - 5.4.40
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808705) }
Output for 5.4.26 - 5.4.32
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808706) }
Output for 5.4.18 - 5.4.25
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808707) }
Output for 5.4.11 - 5.4.17
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808708) }
Output for 5.4.3 - 5.4.10
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808709) }
Output for 5.4.0 - 5.4.2
array(2) { ["start"]=> int(1391348040) ["now"]=> int(1446808710) }
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/7HI2a on line 3
Process exited with code 255.