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
Output for git.master, git.master_jit, rfc.property-hooks
date->02/06/2019 22:23:22 tomorrow -> 03/06/2019

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
28.94 ms | 405 KiB | 5 Q