3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "02/06/2019 22:23:22"; echo 'date->'.$s.PHP_EOL; $date = date ("d/m/Y H:i:s", strtotime($s)); $st_date = new DateTime($date); $st_date->modify('+1 days'); $tomorrow = $st_date->format('d/m/Y'); echo 'tomorrow -> '.$tomorrow; //Always return 02/01/1970

preferences:
26.88 ms | 405 KiB | 5 Q