3v4l.org

run code in 300+ PHP versions simultaneously
<?php // echo (new DateTime())->setTime(0,0,0)->modify('+1 month')->format('U'); var_dump((new DateTime())); echo (DateTime::createFromFormat('U', "661003030"))->format('d.m.Y H:i:s');
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-13 16:12:09.003524" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 12.12.1990 11:57:10
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-13 16:12:09.003753" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 12.12.1990 11:57:10
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-13 16:12:09.003580" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 12.12.1990 11:57:10

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