3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hash = 5381; $name = "ChallengeScore10"; for ($i = 0; $i < strlen($name); $i++) { $hash = gmp_mul($hash, gmp_xor(33, ord($name[$i]))); } echo $name . "_h" . gmp_strval($hash);
based on UtEoc
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, 5.6.28 - 7.0.5, 7.0.20 - 7.2.8, 7.3.0rc3
ChallengeScore10_h336523663080265651352124291809280
Output for 7.0.6, 7.3.0alpha1 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function gmp_mul() in /in/NZcD3:6 Stack trace: #0 {main} thrown in /in/NZcD3 on line 6
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function gmp_mul() in /in/NZcD3 on line 6
Process exited with code 255.