3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( new \DateTime('tomorrow') ); var_dump( new \DateTime('-1 week') ); var_dump( (new \DateTime('2015-03-04'))->format('H:i') ); var_dump( \DateTime::createFromFormat('Y-m-d', '2015-03-04')->format('H:i') ); var_dump( \DateTime::createFromFormat('!Y-m-d', '2015-03-04')->format('H:i') ); var_dump( \DateTime::createFromFormat('|Y-m-d', '2015-03-04')->format('H:i') );
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-05 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2017-06-27 12:39:55.003562" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(5) "00:00" string(5) "12:39" string(5) "00:00" string(5) "00:00"
Output for git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-05 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2017-06-27 12:39:55.004111" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(5) "00:00" string(5) "12:39" string(5) "00:00" string(5) "00:00"
Output for rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2017-07-05 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#1 (3) { ["date"]=> string(26) "2017-06-27 12:39:55.003509" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } string(5) "00:00" string(5) "12:39" string(5) "00:00" string(5) "00:00"

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