3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime = '2014-11-10-16.14.18'; $datetime = preg_replace('#\d-\d-\d(-)\d\.\d\.d#', '$0', $datetime); var_dump($datetime);
based on hf9d2
Output for 4.3.0 - 7.3.0rc4
string(19) "2014-11-10-16.14.18"