3v4l.org

run code in 300+ PHP versions simultaneously
<?php Echo date("Y-m-d", strtotime("2 weeks")).PHP_EOL; // 2017-10-15 Echo date("Y-m-d", strtotime("15 days")).PHP_EOL; // 2017-10-16 Echo date("Y-m-d", strtotime("+.5 months")).PHP_EOL; // not valid, returns 1970-01-01

preferences:
480.43 ms | 459 KiB | 5 Q