3v4l.org

run code in 200+ 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 - 7.2.0
redirects:sheknows.com:15