3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function password_verify_with_rehash($password, $hash) { if (!password_verify($password, $hash)) { return false; } if (password_needs_rehash($hash, PASSWORD_DEFAULT)) { $hash = password_hash($password, PASSWORD_DEFAULT); return $hash; } } var_dump( password_verify_with_rehash() );
Output for 7.1.5 - 7.2.6
Fatal error: Uncaught ArgumentCountError: Too few arguments to function password_verify_with_rehash(), 0 passed in /in/AlYsj on line 15 and exactly 2 expected in /in/AlYsj:2 Stack trace: #0 /in/AlYsj(15): password_verify_with_rehash() #1 {main} thrown in /in/AlYsj on line 2
Process exited with code 255.
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function password_verify_with_rehash(), 0 passed in /in/AlYsj on line 14 and exactly 2 expected in /in/AlYsj:2 Stack trace: #0 /in/AlYsj(14): password_verify_with_rehash() #1 {main} thrown in /in/AlYsj on line 2
Process exited with code 255.
Output for 5.5.0 - 5.6.28, 7.0.20
Warning: Missing argument 1 for password_verify_with_rehash(), called in /in/AlYsj on line 15 and defined in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash(), called in /in/AlYsj on line 15 and defined in /in/AlYsj on line 2 Notice: Undefined variable: password in /in/AlYsj on line 3 Notice: Undefined variable: hash in /in/AlYsj on line 3 bool(false)
Output for 7.0.0 - 7.0.14
Warning: Missing argument 1 for password_verify_with_rehash(), called in /in/AlYsj on line 14 and defined in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash(), called in /in/AlYsj on line 14 and defined in /in/AlYsj on line 2 Notice: Undefined variable: password in /in/AlYsj on line 3 Notice: Undefined variable: hash in /in/AlYsj on line 3 bool(false)
Output for 5.1.0 - 5.4.45
Warning: Missing argument 1 for password_verify_with_rehash(), called in /in/AlYsj on line 15 and defined in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash(), called in /in/AlYsj on line 15 and defined in /in/AlYsj on line 2 Fatal error: Call to undefined function password_verify() in /in/AlYsj on line 3
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for password_verify_with_rehash() in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash() in /in/AlYsj on line 2 Fatal error: Call to undefined function password_verify() in /in/AlYsj on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Warning: Missing argument 1 for password_verify_with_rehash() in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash() in /in/AlYsj on line 2 Fatal error: Call to undefined function: password_verify() in /in/AlYsj on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Warning: Missing argument 1 for password_verify_with_rehash() in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash() in /in/AlYsj on line 2 Fatal error: Call to undefined function: password_verify() in /in/AlYsj on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Missing argument 1 for password_verify_with_rehash() in /in/AlYsj on line 2 Warning: Missing argument 2 for password_verify_with_rehash() in /in/AlYsj on line 2 Fatal error: Call to undefined function: password_verify() in /in/AlYsj on line 3