3v4l.org

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