3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * In this case, we want to increase the default cost for BCRYPT to 12. * Note that we also switched to BCRYPT, which will always be 60 characters. */ $options = [ 'cost' => 20, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0

Process exited with code 137.
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/ioDOE on line 9
Process exited with code 255.

preferences:
90.58 ms | 401 KiB | 91 Q