3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (class_exists('DateTime')) { date_default_timezone_set('Europe/Berlin'); $datetime = new DateTime('2016-01-01 23:59:59'); $datetime->setDate(2016, 2, 28); print_r($datetime); } else { echo 'DateTime not supported yet'; }
Output for git.master, git.master_jit, rfc.property-hooks
DateTime Object ( [date] => 2016-02-28 23:59:59.000000 [timezone_type] => 3 [timezone] => Europe/Berlin )

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:
29.89 ms | 405 KiB | 5 Q