3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $usernameCheck = 'dani'; function checkUsername($username) { return (bool)preg_match('/[^a-z_\-0-9]/i', $username) } var_dump(checkUsername($usernameCheck));
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '}' in /in/DKfdn on line 7
Process exited with code 255.