3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hash = '$md5$2y$10$atGASXMlANJI2CUyCQqZEeOB6cPxXD8NxTa9E/sQTxfGL7Du9WDyi'; var_dump(substr($userPassword, 0, 4) === '$md5'); var_dump(password_verify(md5('test'), substr($hash, 4)));
based on K9Q1R
Output for 5.5.24 - 7.3.0rc4
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) bool(true)
Output for 5.0.4 - 5.4.45
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) Fatal error: Call to undefined function password_verify() in /in/DHt2m on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) Fatal error: Call to undefined function password_verify() in /in/DHt2m on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) Fatal error: Call to undefined function: password_verify() in /in/DHt2m on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) Fatal error: Call to undefined function: password_verify() in /in/DHt2m on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: userPassword in /in/DHt2m on line 4 bool(false) Fatal error: Call to undefined function: password_verify() in /in/DHt2m on line 5