3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject= "Damon Carson Stovall, Bret Roman Mikulak, Jack Filiberto Quirke, Elroy Forrest Jarnagin, Ulysses Wiley Cregger, Brent Greg Jonah, Bret Armand Daylong, Ned Numbers Vandell, Bret Alden Cutlip, Bret Chung Markie,"; preg_match_all( '/(Bret\s+[^,]+)/', $subject, $matches); foreach( $matches[1] as $bret) echo $bret . "\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Bret Roman Mikulak Bret Armand Daylong Bret Alden Cutlip Bret Chung Markie