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 ($enddate);

preferences:
47.45 ms | 402 KiB | 5 Q