3v4l.org

run code in 150+ 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); $color = array_pop($matches[2]); var_dump($color);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(6) "ff00ff"