3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $odate = "2012-09-12"; $newDate = date("d-m-Y", strtotime($odate)); echo $newDate; ?> - See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.zel6QHbR.dpuf
Output for 4.3.0 - 7.1.0
12-09-2012- See more at: http://www.w3resource.com/php-exercises/php-basic-exercises.php#sthash.zel6QHbR.dpuf