3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '20/04/2013'; echo "<br>"; echo date('Y-m-d', strtotime($data)); echo "<br>"; $data = '04/20/2013'; echo date('Y-m-d', strtotime($data)); echo "<br>"; $data = '2013-10-12'; echo date('d/m/Y', strtotime($data));
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<br>1970-01-01<br>2013-04-20<br>12/10/2013
Output for 4.3.0 - 5.0.5
<br>2014-08-04<br>2013-04-20<br>12/10/2013