3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $calcul = strtotime("today") - strtotime("12-09-2013"); echo strftime("%d-%m-%Y", $calcul) . '<br />'; echo strftime("%d-%m-%Y", strtotime("today"));
Output for 5.1.3 - 7.3.0rc4
04-01-1970<br />15-09-2013
Output for 5.1.0 - 5.1.2
15-09-2013<br />15-09-2013
Output for 4.3.6 - 5.0.5
13-07-1965<br />15-09-2013
Output for 4.3.0 - 4.3.5
<br />15-09-2013