3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function formatLink($post) { if(preg_match('/^\>\>[0-9]{+}$/', $post)) { return "<font color=\"red\">".htmlentities($post)."</font>"; } else { return "<font color=\"#b7b7b7\">".htmlentities($post)."</font>"; } } echo formatLink(">>86721678");
Output for 4.3.0 - 7.1.0
<font color="#b7b7b7">&gt;&gt;86721678</font>