3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $uniqid_with_more_entropy = uniqid('', true); $uniqid_13x = substr($uniqid_with_more_entropy, 0, 13); $more_entropy = substr($uniqid_with_more_entropy, 13); $more_entropy = str_replace('.', '', $more_entropy); dechex(mt_rand(0, 0xFFF)) . dechex(mt_rand(0, 0xFFFFFFFF)) . $uniqid_13x . dechex((int)((string)mt_rand(0, 4) . $more_entropy));
based on Dt4aU
Output for 5.3.20 - 7.2.0