3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $subject = "ASDASDAS"; $pattern = '/[^a-zA-Z0-9]/gi'; $replace = ''; var_dump(preg_replace($pattern, $replace, $subject));
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): Unknown modifier 'g' in /in/dSVoj on line 6 NULL
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/dSVoj on line 6 NULL