3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_dod = '23/01/17'; $dod = DateTimeImmutable::createFromFormat('d/m/y', $original_dod); $formated = $dod->format('d/m/19y'); $formatedISO = $dod->format('19y-m-d'); var_dump($formated); var_dump($formatedISO);
Output for git.master_jit, git.master
string(10) "23/01/1917" string(10) "1917-01-23"

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