3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = '20/04/2013'; echo date('Y-m-d', strtotime($data)); $data = '04/20/2013'; echo date('Y-m-d', strtotime($data)); $data = '2013-10-12'; echo date('d/m/Y', strtotime($data));
Output for 5.1.0 - 7.2.0
1970-01-012013-04-2012/10/2013
Output for 4.3.0 - 5.0.5
2014-08-042013-04-2012/10/2013