3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* nul byte (\u0000) safe password hashing function based on password_hash (uses "bcrypt" algorithm). * Source : https://paragonie.com/blog/2016/02/how-safely-store-password-in-2016 by CiPHPCoder * Code: @Florent_ATo */ function safePasswordHash($password) { return password_hash( base64_encode( hash('sha384', $password, false) ), PASSWORD_BCRYPT, array('cost' => 12) ); } $password = '*********password-longer-than-72-characters-and-with-\0-sequence*********'; print safePasswordHash($password); ?>
Output for git.master
$2y$12$CD6pj5XNB.oi5EltT968uu5uGHiYZNZIS04mAQvyDz8XlJnn598qC
Output for git.master_jit
$2y$12$xbZW3hpxmf3/qPsTGtYsVuAG7GnlNFvlSZn6dD6L.Kh7M1vsuVvTa

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.82 ms | 401 KiB | 7 Q