3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = '+n6p7y499({)EHqvyKz;Dd'; $salt = str_rev('7cc83d7a873d3eaf761dbe903a21b0d4'); $loop = preg_match('/(\d)/', $salt, $m) ? 10 + (int) $m[1] : 10; $encrypted = $password; for ($i = 0; $i < $loop; $i++) { $encrypted = hash('sha512', ($i % 2) ? ($salt . $encrypted) : ($encrypted . $salt)); } echo $encrypted . PHP_EOL . $salt;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function str_rev() in /in/BfuHT:3 Stack trace: #0 {main} thrown in /in/BfuHT on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function str_rev() in /in/BfuHT on line 3
Process exited with code 255.