3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_string = date('Ymd') . " + 36 months"; echo date('Ymd', strtotime($date_string));

preferences:
49.52 ms | 402 KiB | 5 Q