3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kw = " asdsdfsdf as "; $pattern = var_export('/^((?![[:cntrl:]' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']).)*$/u'); var_dump($pattern); var_dump(preg_match($pattern, $kw));
based on 67QXA
Output for 4.3.11 - 7.2.0
'/^((?![[:cntrl:],\\!@%\\^\\*\\(\\)\\=\\{\\};~`\\<\\>\\?\\\\\\|]).)*$/u'NULL Warning: preg_match(): Empty regular expression in /in/DpqAK on line 7 bool(false)
Output for 4.3.0 - 4.3.10
'/^((?![[:cntrl:],\\!@%\\^\\*\\(\\)\\=\\{\\};~`\\<\\>\\?\\\\\\|]).)*$/u'NULL Warning: Empty regular expression in /in/DpqAK on line 7 bool(false)