3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kw = " asdsdfsdf as "; $pattern = '/^((?![[:cntrl:]' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']).)*$/u'; var_dump($pattern); var_dump(var_export($pattern, true)); var_dump(preg_match($pattern, $kw));
based on LZMLF
Output for 5.3.11 - 7.2.0
string(56) "/^((?![[:cntrl:],\!@%\^\*\(\)\=\{\};~`\<\>\?\\\|]).)*$/u" string(72) "'/^((?![[:cntrl:],\\!@%\\^\\*\\(\\)\\=\\{\\};~`\\<\\>\\?\\\\\\|]).)*$/u'" int(1)