3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $usernameCheck = 'dani'; if (!preg_match('/[^a-z_\-0-9]/i', $usernameCheck) && strlen($usernameCheck) > 3 && strlen($usernameCheck) < 15) { echo 'ok'; } else { echo 'false';}
Output for 4.3.0 - 7.1.0
ok