3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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'
based on sTH4e
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
23/04/88