3v4l.org

run code in 300+ PHP versions simultaneously
<?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));
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0

preferences:
86.99 ms | 402 KiB | 46 Q