3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = "ASDASDAS"; $pattern = '/[^a-zA-Z0-9]/'; $replace = ''; var_dump(preg_replace($pattern, $replace, $subject));
Output for 4.3.0 - 7.1.0
string(8) "ASDASDAS"