- Output for 7.3.0 - 7.3.32, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12
- 2026-10-30 18:26:45 2021-10-30 19:26:45 2026-10-30 20:26:45
<?php
// in examples below, this script was run at 30.10.2021
echo date("Y-m-d H:i:s\n", strtotime("+1.5 year", time()));
echo date("Y-m-d H:i:s\n");
echo date("Y-m-d H:i:s\n", strtotime("-1.5 year", time()));
?>