3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * @param $passwordHash * @return bool|string */ function passwordNeedsRehash($passwordHash) { if (password_needs_rehash($passwordHash, PASSWORD_DEFAULT, []) { return true; } return $this->forceRehash; }
based on bOVla
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'return' (T_RETURN) in /in/sUNNO on line 10
Process exited with code 255.
Output for 5.4.11 - 5.6.17
Parse error: syntax error, unexpected '{' in /in/sUNNO on line 9
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/sUNNO on line 9
Process exited with code 255.