3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Asia/Tokyo'); for ($i = 0; $i < 10; $i++) { $date = new DateTime('2018-01-31'); $date->modify((int) ($i + 2).' month'); var_dump($date->format('Y-m-d H:i') ." → " . $date->format('Y-m-27')); echo PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
string(35) "2018-03-31 00:00 → 2018-03-27" string(35) "2018-05-01 00:00 → 2018-05-27" string(35) "2018-05-31 00:00 → 2018-05-27" string(35) "2018-07-01 00:00 → 2018-07-27" string(35) "2018-07-31 00:00 → 2018-07-27" string(35) "2018-08-31 00:00 → 2018-08-27" string(35) "2018-10-01 00:00 → 2018-10-27" string(35) "2018-10-31 00:00 → 2018-10-27" string(35) "2018-12-01 00:00 → 2018-12-27" string(35) "2018-12-31 00:00 → 2018-12-27"

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:
47.13 ms | 402 KiB | 8 Q