3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '[a-z][0-9]'; var_dump(preg_match('~' . $a . '~i', 'TesT1'));
based on 8SXna
Output for 4.3.0 - 7.1.0
int(1)