3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Leap second on 2016-12-31 $date = DateTimeImmutable::createFromFormat( 'j-M-Y H:i:s', '31-Dec-2016 23:59:60' ); echo $date->format('Y-m-d H:i:s'); // 2017-01-01 00:00:00 $date = DateTimeImmutable::createFromFormat( 'j-M-Y H:i:s', '99-Dec-2016 99:99:99' ); echo $date->format('Y-m-d H:i:s'); // 2017-03-13 04:40:39 $date = DateTimeImmutable::createFromFormat( 'j-M-Y H:i:s', '99-Dec-2016 99:99:100' ); var_dump($date); // false
Output for git.master, git.master_jit
2017-01-01 00:00:002017-03-13 04:40:39bool(false)

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:
41.34 ms | 525 KiB | 4 Q