3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $re1='(<)'; # Any Single Character 1 $re2='(!)'; # Any Single Character 2 $re3='(DOCTYPE)'; # Word 1 $re4='.*?'; # Non-greedy match on filler $re5='((?:[a-z][a-z0-9_]*))'; # Variable Name 1 $re6='.*?'; # Non-greedy match on filler $re7='(\\[.*?\\])'; # Square Braces 1 $re8='(>)'; # Any Single Character 3 echo $re1.$re2.$re3.$re4.$re5.$re6.$re7.$re8;
based on V466F
Output for 4.3.0 - 7.1.0
(<)(!)(DOCTYPE).*?((?:[a-z][a-z0-9_]*)).*?(\[.*?\])(>)