3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_match_all( '/\[([\w]*?)\:([\w\W\s]*?)\]/' , '[email:optin|<u>Optin</u>]' , $matches); var_dump($matches);
Output for 4.3.0 - 7.3.1
array(3) { [0]=> array(1) { [0]=> string(26) "[email:optin|<u>Optin</u>]" } [1]=> array(1) { [0]=> string(5) "email" } [2]=> array(1) { [0]=> string(18) "optin|<u>Optin</u>" } }