3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $salt = ''; $iteration = 16; for ($x = 0; $x < $iteration; $x++) { $switch = rand(0, 2); switch ($switch) { case 0: $salt .= strval(rand(0, 9)); break; case 1: $salt .= chr(rand(65, 90)); break; case 2; $salt .= chr(rand(97, 122)); break; } } //echo $salt; echo sha1('wartawan'.'umFSEv4bLkAqWe31');
Output for 4.3.0 - 7.1.0
c97428ddb604c2975c7830eebd3557768b9daae1