3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $commit = "[ASFXNB20] [CL: test commit message hey] Some work has been done"; preg_match('/.+\[CL:(.+)\].+$/iu', $commit, $matches); var_dump($matches);
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(64) "[ASFXNB20] [CL: test commit message hey] Some work has been done" [1]=> string(24) " test commit message hey" }