3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "12.03 10:00-11:00 Елка, Земфира"; $res = preg_match('/^(\d\d)[.](\d\d)[ ]+(\d\d\:\d\d)-(\d\d\:\d\d)[ ]+(.+)$/is', $str, $matches); var_dump($res, $matches);
based on 5KrSh
Output for 4.3.0 - 7.2.0
int(1) array(6) { [0]=> string(42) "12.03 10:00-11:00 Елка, Земфира" [1]=> string(2) "12" [2]=> string(2) "03" [3]=> string(5) "10:00" [4]=> string(5) "11:00" [5]=> string(24) "Елка, Земфира" }