3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kw = " asdsdfsdf as "; $pattern = '/[' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']/u'; var_dump($pattern); var_dump(var_export($pattern, true)); var_dump(preg_match($pattern, $kw));

preferences:
33.92 ms | 402 KiB | 5 Q