3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dateString = "Wed, 26 Oct 2022 16:11:30 -1100"; $dt = DateTimeImmutable::createFromFormat('D, j M Y H:i:s O', $dateString); $mysqlFormat = $dt->setTimezone(new DateTimeZone('UTC'))->format('Y-m-d H:i:sP'); echo $mysqlFormat;
Output for rfc.property-hooks, git.master, git.master_jit
2022-10-27 03:11:30+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:
51.41 ms | 1258 KiB | 4 Q