3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = explode("/",'9/28/2007'); for($i=0;$i<2;$i++){ if(count($date[$i]) < 2){ $date[$i] = '0'.$date[$i]; } } echo $date[2].$date[0].$date[1];
based on CRBj4
Output for 4.3.0 - 7.1.0
200709028