3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match('~(?P<date>[0-9]{2}-[0-9]{2}-[0-9]{2}) (?P<time>[0-9]{2}:[0-9]{2}:[0-9]{2})~', '******END (fdeleon-manjaro:/fdeleon/home/projects/www-local/test/public/debug.php:17 at 14-08-07 03:47:03)**********', $m);var_dump($m);
based on ORDed
Output for 4.3.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(5) { [0]=> string(17) "14-08-07 03:47:03" ["date"]=> string(8) "14-08-07" [1]=> string(8) "14-08-07" ["time"]=> string(8) "03:47:03" [2]=> string(8) "03:47:03" }
Output for 4.3.0 - 4.3.2
array(3) { [0]=> string(17) "14-08-07 03:47:03" [1]=> string(8) "14-08-07" [2]=> string(8) "03:47:03" }