3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new DateTime('2015-05-04 17:22'); var_dump((string) $a->format('Y-m-d H:i:s')); $a->modify('+1 day'); var_dump((string) $a->format('Y-m-d H:i:s')); $a->modify('+1 weekday'); var_dump((string) $a->format('Y-m-d H:i:s')); var_dump(date('Y-m-d H:i:s', strtotime('+1 weekday', strtotime('2015-05-05 17:22'))));
Output for git.master, git.master_jit, rfc.property-hooks
string(19) "2015-05-04 17:22:00" string(19) "2015-05-05 17:22:00" string(19) "2015-05-06 17:22:00" string(19) "2015-05-06 17:22:00"

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:
52.34 ms | 401 KiB | 8 Q