3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array( '20.5.14', '21.5.14', '22.5.14', '23.5.14', '24.5.14', '25.5.14', '26.5.14', '27.5.14', '28.5.14', '29.5.14', '30.5.14', '31.5.14', ); echo "<pre>"; foreach ($dates as $date_in) { try { $temp_date = new DateTime($date_in); $date_out = $temp_date->format('Y-m-d'); } catch (Exception $e) { $date_out = 'error'; } printf('%1$ 12s => %2$s', $date_in, $date_out); echo "\n"; } echo "</pre>";
Output for git.master, git.master_jit, rfc.property-hooks
<pre> 20.5.14 => 2014-10-31 21.5.14 => 2014-10-31 22.5.14 => 2014-10-31 23.5.14 => 2014-10-31 24.5.14 => 2014-11-01 25.5.14 => 2014-05-25 26.5.14 => 2014-05-26 27.5.14 => 2014-05-27 28.5.14 => 2014-05-28 29.5.14 => 2014-05-29 30.5.14 => 2014-05-30 31.5.14 => 2014-05-31 </pre>

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