fork download
  1. <?php
  2.  
  3. echo PCRE_VERSION;
  4.  
  5. var_dump(preg_match('/\k/', 'foo'));
  6. var_dump(preg_match('/\g/', 'foo'));
  7.  
  8.  
Success #stdin #stdout #stderr 0.02s 52488KB
stdin
Standard input is empty
stdout
8.35 2014-04-04bool(false)
bool(false)
stderr
PHP Warning:  preg_match(): Compilation failed: \k is not followed by a braced, angle-bracketed, or quoted name at offset 2 in /home/dK6CoO/prog.php on line 5
PHP Warning:  preg_match(): Compilation failed: a numbered reference must not be zero at offset 1 in /home/dK6CoO/prog.php on line 6