3v4l.org

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