3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $psm_name = 'EurAsia'; if ((preg_match("/^[a-zA-Z0-9&@#_.^-\s^'\"]+$/", $psm_name))) { echo "true"; }else{ echo "false"; }
based on vWvBA
Output for 5.4.41 - 7.2.0
Warning: preg_match(): Compilation failed: invalid range in character class at offset 19 in /in/oEl9K on line 3 false
Output for 4.3.0 - 5.4.40
true