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+)#', '\1-\2-\3-\4 ', $datetime); var_dump($datetime);
based on 0EaQq
Output for 4.3.0 - 7.3.0rc4
string(19) "2014-11-10-16.14.18"