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] ) ) ) . "\n"; $values = explode( "|" , $matches[2][0] ); $tag = $values[0]; echo $tag . "\n"; echo "return" . ucfirst( trim( strtolower( $tag ) ) );
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Frontburner_Tag_Email optin returnOptin