3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("/^[a-z]*@[a-z]*.([a-z]{3}|[a-z]{3}.[a-z]{2})/", "usde@dev.co.in", $matches); var_dump($matches);
based on DmOWN
Output for 4.3.0 - 7.1.7
array(2) { [0]=> array(0) { } [1]=> array(0) { } }