3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_match_all( '/\[([\w]*?)\:([\w\W\s]*?)\]/' , '[email:optin|<u>Optin</u>]' , $matches); echo $class = "Frontburner_Tag_" . ucfirst( trim( strtolower( $matches[1][0] ) ) ); $values = explode( "|" , $matches[2][0] ); $tag = $values[0]; echo $tag;
Output for 4.3.0 - 7.1.0
Frontburner_Tag_Emailoptin