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+#', ' ', $datetime); var_dump($datetime);
based on II78p
Output for 4.3.0 - 7.2.6
string(19) "2014-11-10-16.14.18"