3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password="asdaddas"; $salt="asdadd121as"; function encryptPassword($password, $salt) { $pepper = "Ub2SuCfYTfncu4MwUmxH9zINM02uiot2hN5Fycu5"; $hash = sha1(md5(hash('sha512',$pepper.$salt.$password)) . $password . hash('sha256',$salt)); for ($i = 0; $i < 100; $i++) { $hash = md5($hash); } return $hash; }
based on ToSBe
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0