3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $numberOfShards = 20; $route = '/ca/health-and-wellness/articles/822109/choosing-a-fit-friend'; $site = 'sheknows.com'; $type = 301; $dest = 'http://somewhere.com'; $shard = floor(crc32($route) % $numberOfShards); $key = sprintf('redirects:%s:%s', $site, $shard); echo $key;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
redirects:sheknows.com:15