3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sanitized = '?my CSS+cl@ss#'; $sanitized = preg_replace( '/[^A-Za-z0-9_-\@]/', '', $sanitized ); var_dump( $sanitized );
based on lqOOu
Output for 5.3.18 - 7.3.0rc4
Warning: preg_replace(): Compilation failed: range out of order in character class at offset 14 in /in/rTUbL on line 3 NULL