3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataFinal = new \DateTime('first day of next month'); echo $dataFinal->format('Y-m-d') . "\n\n"; $data = new \DateTime('180 days ago'); while ($data < $dataFinal) { echo 'process '. $data->format('Y-m-d'); $data->modify('first day of next month'); echo ' virou =>' . $data->format('Y-m-d') ."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
2017-06-01 process 2016-11-06 virou =>2016-12-01 process 2016-12-01 virou =>2017-01-01 process 2017-01-01 virou =>2017-02-01 process 2017-02-01 virou =>2017-03-01 process 2017-03-01 virou =>2017-04-01 process 2017-04-01 virou =>2017-05-01 process 2017-05-01 virou =>2017-06-01

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