- Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.1 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
- Output for 7.0.0
- Notice: Only variables should be passed by reference in /in/WfEtP on line 17 bool(true)
<?php
if (phpversion() != '7.0.0') { die; }
$ids = [];
for($i=0; $i<500; $i++)
{
$time = time();
$randomString1 = bin2hex(random_bytes(20));
$randomString2 = bin2hex(random_bytes(10));
$ids[] = md5($time.$randomString1.$randomString2);
}
var_dump(
arsort(
array_count_values($ids)
)
);