3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $userId = 'test'; echo preg_match('/\A[a-zA-Z0-9_-=]{3,8}\z/', $userId) ? 'true' : 'false';
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_match(): Compilation failed: range out of order in character class at offset 14 in /in/DT9D1 on line 3 false
Output for 4.3.0 - 4.3.10, hhvm-3.10.0 - 3.12.0
Warning: Compilation failed: range out of order in character class at offset 14 in /in/DT9D1 on line 3 false