3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime( date('Y-m-d') ); $data_1 = $d1->format('Y-m-d'); $pd = $d1->modify('+182 day'); $data_2 = $pd->format('Y-m-d'); var_dump($data_1, $data_2);
Output for git.master, git.master_jit, rfc.property-hooks
string(10) "2014-04-04" string(10) "2014-10-03"

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