3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$hoy = date("d-m-Y"); //$originalDate = "2015-08-20"; //$h = date("d-m-y", strtotime($originalDate)); //$hasta = strtotime("+10 day"); //$new_date = date('d-m-Y', $hasta); /*$new_date = "2015-08-20";*/ /*$a = strtotime($hoy); $b = strtotime($new_date); echo $hoy." - ".$new_date."\n".$a." - ".$b;*/ $a = date("d-m-Y"); echo date('d-m-Y', strtotime($a. ' + 12 days'))."\n".$a;

preferences:
28.67 ms | 405 KiB | 5 Q