3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = password_hash("password"); $pass = "password"; if(password_verify($pass, $hash)) { echo("Verified."); }
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Warning: password_hash() expects at least 2 parameters, 1 given in /in/Xi08O on line 2
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Xi08O on line 2
Process exited with code 255.

preferences:
89.69 ms | 401 KiB | 122 Q