3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = <<<HTML <FONT FACE="League" SIZE="15" COLOR="#000000"><font COLOR="#ff00ff" SIZE="18"><b><font SIZE="23"><font SIZE="27"><font SIZE="23"><font SIZE="18"><font SIZE="23">Moet Flip make-up dragen? <br />Stem mee in de poll!!</font></font></font></font></font></b></font><br /></FONT> HTML; preg_match_all('/color\s*=\s*([\'"]?)#([0-9a-f]+)\1/i', $str, $matches); var_dump($matches);
Output for 4.3.0 - 7.2.0
array(3) { [0]=> array(2) { [0]=> string(15) "COLOR="#000000"" [1]=> string(15) "COLOR="#ff00ff"" } [1]=> array(2) { [0]=> string(1) """ [1]=> string(1) """ } [2]=> array(2) { [0]=> string(6) "000000" [1]=> string(6) "ff00ff" } }