3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = '12345678901234567890123456789012345678901234567890123456789'; $password = 'foo'; $hash = password_hash($hundred . $password, PASSWORD_BCRYPT); $result = password_verify($hundred . 'BAR', $hash); var_dump($result);
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
bool(false)
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/9eUQd on line 4
Process exited with code 255.

preferences:
183.58 ms | 401 KiB | 239 Q