3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = [ '2017-08-21 18:00:00', '2017-08-24 18:00:00', '2017-08-30 18:00:00', ]; foreach ($dates as $string) { $date = new DateTime($string); echo $date->format('m/d/Y g:i A')."\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
08/21/2017 6:00 PM 08/24/2017 6:00 PM 08/30/2017 6:00 PM

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