3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function str_hash($str, $range=100){ $number = crc32($str); return $number % $range; } /* $hash = md5("ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"); echo base_convert($hash, 16, 10); */ $hash = "ececa23f92d363f2471a5255b878ff4375960be4695f3dd8afe39a17428f4f24"; echo str_hash($hash, 5);
based on 1PtiI
Output for 5.6.0 - 7.3.0rc4
1