3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1970-01-012013-04-2012/10/2013
Output for 4.3.0 - 5.0.5
2014-08-042013-04-2012/10/2013