3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $strdate = date("d-m-Y"); $ndate = str_replace("/","_",$strdate); $ndate = str_replace(":","_",$strdate); $ndate = str_replace(" ","_",$strdate); echo $ndate; ?>
Output for 4.3.0 - 7.1.0
23-01-2013