3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Generate a load of "random" input $strings = array_map('md5', range(1, 100)); $bucketCount = 10; $buckets = []; foreach ($strings as $string) { $key = crc32($string) % $bucketCount; $buckets[$key][] = $string; } print_r($buckets);

Abusive script

This script was stopped while abusing our resources


preferences:
25.76 ms | 407 KiB | 5 Q