3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // パスワードは'GoemonLets5'です // $hashにはパスワードのhash値が入ってます if (password_verify('GoemonLets5shinai', $hash)) { echo 'パスワードが一致したよ!' . "\n"; } else { echo 'パスワードが一致してないよ!' . "\n"; } if (password_verify('GoemonLets5', $hash)) { echo 'パスワードが一致したよ!' . "\n"; } else { echo 'パスワードが一致してないよ!' . "\n"; }
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: hash in /in/Wa07B on line 6 パスワードが一致してないよ! Notice: Undefined variable: hash in /in/Wa07B on line 12 パスワードが一致してないよ!
Output for hhvm-3.12.0
Notice: Undefined variable: hash in /in/Wa07B on line 6 Fatal error: Uncaught TypeError: Argument 2 passed to password_verify() must be an instance of string, null given in /in/Wa07B:6 Stack trace: #0 /in/Wa07B(6): password_verify() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Notice: Undefined variable: hash in /in/Wa07B on line 6 Catchable fatal error: Argument 2 passed to password_verify() must be an instance of string, null given in /in/Wa07B on line 6
Process exited with code 255.
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_verify() in /in/Wa07B on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_verify() in /in/Wa07B on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_verify() in /in/Wa07B on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_verify() in /in/Wa07B on line 6