3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all('/\s*"?([^><,"]+)"?\s*((?:<[^><,]+>)?)\s*/', "Karolis Sinas <karolissinas@mediaventures.be>, ", $matches, PREG_SET_ORDER) > 0; var_dump($matches);
Output for 4.3.0 - 7.2.6
array(2) { [0]=> array(3) { [0]=> string(45) "Karolis Sinas <karolissinas@mediaventures.be>" [1]=> string(14) "Karolis Sinas " [2]=> string(31) "<karolissinas@mediaventures.be>" } [1]=> array(3) { [0]=> string(1) " " [1]=> string(1) " " [2]=> string(0) "" } }