3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderDuration = '+1 year'; $startDate= date("Y-m-d"); $enddate = date("Y-m-d",strtotime($startDate." ".$orderDuration)); print ($startDate."\n"); print ($startDate);

preferences:
71.74 ms | 402 KiB | 5 Q