3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // https://regex101.com/r/WfNnwo/1 var_dump( preg_match('/^([ \x{00C0}-\x{00FF}a-zA-Z\'\-]){2,30}$/', 'Andréçøö') );
based on 4F6SO
Output for 4.4.3 - 4.4.9, 5.1.3 - 5.6.30, hhvm-3.10.1 - 3.15.4, 7.0.0 - 7.2.6
int(0)
Output for 4.3.11 - 4.4.2, 5.0.0 - 5.1.2
Warning: preg_match(): Compilation failed: range out of order in character class at offset 14 in /in/jQ5H0 on line 5 bool(false)
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: range out of order in character class at offset 14 in /in/jQ5H0 on line 5 bool(false)