<?php echo preg_replace('~^(\S+)\s+(\S+)$~', '<b>$1</b><i>$2</i>', '2018-07-09 13:25:18');
Standard input is empty
<b>2018-07-09</b><i>13:25:18</i>
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!