3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_match('/[^a\-zA\-Z0\-9.-\s]+/', 'battlenet'));
Output for 5.4.41 - 7.2.0
Warning: preg_match(): Compilation failed: invalid range in character class at offset 17 in /in/u2YNL on line 3 bool(false)
Output for 4.3.0 - 5.4.40
int(1)