3v4l.org

run code in 300+ PHP versions simultaneously
<?php // transforms a U.S. date (MM/DD/YYYY) into a French date (DD/MM/YY) $a1 = '04/23/0288'; // for test $a2 = preg_replace("/([\d]+)\/([\d]+)\/[\d]{1}([\d]){2}/", "$2/$1/$3", $a1); echo $a2; // must be '23/04/15'
Output for git.master, git.master_jit, rfc.property-hooks
23/04/88

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.2 ms | 401 KiB | 8 Q