3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $matches=array(); $string = 'This is a [templateVar]'; preg_match_all("^[^0-9]/", $string, $matches); var_dump($matches);
based on jQbpF
Output for 4.3.11 - 7.1.0
Warning: preg_match_all(): Unknown modifier '0' in /in/j5mSi on line 5 array(0) { }
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '0' in /in/j5mSi on line 5 array(0) { }