3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "AM time:\n"; $am = DateTime::createFromFormat('h:i A','1:00 AM'); echo $am->format('d M y H:i')."\n"; echo $am->format('d M y h:i A'); echo "\n\nPM time:\n"; $pm = DateTime::createFromFormat('h:i A','1:00 PM'); echo $pm->format('d M y H:i')."\n"; echo $pm->format('d M y h:i A'); var_dump(DateTime::createFromFormat('h:i A','1:00 AM')->getTimestamp());
Output for git.master, git.master_jit, rfc.property-hooks
AM time: 28 Sep 15 01:00 28 Sep 15 01:00 AM PM time: 28 Sep 15 13:00 28 Sep 15 01:00 PMint(1443394800)

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:
50.67 ms | 401 KiB | 8 Q