3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '20/04/2013'; echo "\n"; 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 - 7.1.0
1970-01-01<br />2013-04-20<br />12/10/2013
Output for 4.3.0 - 5.0.5
2014-08-04<br />2013-04-20<br />12/10/2013