<?php $past = (new DateTime('now'))->modify('- 2 years')->format('Y'); $future = (new DateTime('now'))->modify('+ 2 years')->format('Y'); var_dump($past, $future);
You have javascript disabled. You will not be able to edit any code.