3v4l.org

run code in 200+ 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 j5mSi
Output for 4.3.11 - 7.1.7
Warning: preg_match_all(): Unknown modifier '/' in /in/SSVKJ on line 5 array(0) { }
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier '/' in /in/SSVKJ on line 5 array(0) { }