3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $days = 10; $time = strtotime("-{$days} days"); echo "Time: {$time}\nData atual: " . date('Y-m-d') . "\nData antiga: " . date('Y-m-d', $time);
based on 8N0ot
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.1.0
Time: 1412364183 Data atual: 2014-10-13 Data antiga: 2014-10-03
Output for 5.0.0 - 5.0.2
Time: 1412287200 Data atual: 2014-10-13 Data antiga: 2014-10-03