3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTimeImmutable(); var_dump($date); $date2 = $date->modify('+1 day'); var_dump($date); var_dump($date2);
Output for git.master
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.003443" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.003443" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2014-07-05 13:52:15.003443" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for git.master_jit
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.004328" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.004328" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2014-07-05 13:52:15.004328" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for rfc.property-hooks
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.003958" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2014-07-04 13:52:15.003958" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2014-07-05 13:52:15.003958" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }

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