3v4l.org

run code in 300+ PHP versions simultaneously
<?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.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
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 - 7.1.4
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.5.38, 5.6.0 - 5.6.40, 7.0.19 - 7.0.33
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.18
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.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.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.3.11, 4.4.0 - 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

preferences:
227.73 ms | 402 KiB | 325 Q