3v4l.org

run code in 300+ PHP versions simultaneously
<?php $inputDate = "wrz 2013 2 12:00:00:000"; $polishMonths = array("sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paz", "lis", "gru"); $englishMonths = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); $r2pDate = str_replace($polishMonths, $englishMonths, $inputDate); $date = DateTime::createFromFormat('M Y j H:i:s:u', $r2pDate); $yyy = $date->format('Y-m-d H:i:s'); var_dump($yyy);
Output for git.master, git.master_jit, rfc.property-hooks
string(19) "2013-09-02 12: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:
42.93 ms | 401 KiB | 8 Q