3v4l.org

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