3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "20142311.235504"; $match = array_combine(['year', 'month', 'day', 'hour', 'minute', 'second'], explode('-', (date_create_from_format("Ydm.His", $str))->format('Y-m-d-H-i-s'))); echo '<pre>', print_r($match);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [year] => 2014 [month] => 11 [day] => 23 [hour] => 23 [minute] => 55 [second] => 04 ) 1

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