3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $validPassword = urlencode('111'); // Generate Random Salt using linux $fp = fopen('/dev/urandom', 'r'); $randomString = fread($fp, 32); fclose($fp); $salt = base64_encode($randomString); $hashed_password = crypt($validPassword, '$6$rounds=5000$'.$salt.'$');
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0