3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $username = 'ab cd'; if (!preg_match("/^[a-z0-9\.\-'\s,àâçéèêëîïôûùüÿñæœ]+$/i", $username)) { echo "username not ok"; } else { echo "username ok"; }
based on 8DTjA
Output for 4.3.0 - 7.2.0
username ok