3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dates = explode("/","03/15/2014"); $newdate = $dates[2]."-".$dates[1]."-".$dates[0]; echo $newdate;
Output for 4.3.0 - 7.1.0
2014-15-03