3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d', strtotime('2017-01-01')); echo "\n"; $mydate = date('Y-m-d', strtotime('01/01/2017')); echo date('m/d/Y', strtotime('01/01/2017')); echo "\n"; echo preg_match('/^\d{4}-\d{2}-\d{2}$/', $mydate);
based on 6PKtQ
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
2017-01-01 01/01/2017 1