3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (phpversion() != '7.0.0') { die; } $ids = []; for($i=0; $i<50; $i++) { $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); $ids[] = md5($time.$randomString1.$randomString2); } var_dump(print_r(array_count_values($ids)));
based on 0YEiW
Output for 5.5.0 - 5.6.28, 7.0.1 - 7.2.0
Output for 7.0.0
Array ( [04893dc37a93c3f1870671a48fca4547] => 1 [85f4acff1ec9e8754f3310105c8fcf91] => 1 [a9c856ec2715de5646acaed19a54cecb] => 1 [08e051687e8ddb005b5e3cf10738838a] => 1 [166208b5f9e8b8311c14d60bbb0d41aa] => 1 [5b6f3ad12312a74a17b098b4b5bf8944] => 1 [ff4a58d1d2d6a0db2467441297571e2d] => 1 [11273c8092d69246057b14c218aa9da2] => 1 [2339259286cddbde6a889693c5bc4c3e] => 1 [2a349cedc704a2d4a6a2347d755a43cc] => 1 [47f2da872bd1ee78a28ec065775d99d7] => 1 [c247679b5cc3260ffc2974554581052e] => 1 [4ab3ff32c63a2043c944f3f1ed706e3b] => 1 [12bdc576fc3db0ac13cccda3585a6969] => 1 [ea9d545df847f4480c3a75a8d8d18df8] => 1 [0dd83174d3f8ba6bed5b0f4252d12b84] => 1 [5654979cfa9e7061fec8636589eb4413] => 1 [66c5631a489202b6a4c5b7639d5905d5] => 1 [9899ac743cac3cb657601f26377dc73b] => 1 [6a81feef8eb46550af6cf9d89a969f9a] => 1 [f63e467358ff0ec3dd7fd08d9a8a588d] => 1 [96d7695737ce2500103a4261db22e972] => 1 [fc452c9160c0cbac33f8a596c6602aaa] => 1 [881be37ded0e316b0289aac5438c8efe] => 1 [204cb16b5bf02c5a7acf8d7b7672649d] => 1 [74eb2aa43967a3ca9f0cb669cbdab5a2] => 1 [e8e587fd5a7c13059c59517c88093b4f] => 1 [ee3a162b578b4bdcfc75e0e8deb2ed1c] => 1 [52c075b825d050c3c713dc42e9b56876] => 1 [f090b1e1921fb4af5f26aa789fa26fd5] => 1 [07d884667a3e956358016e87c6978ee7] => 1 [6e7665906c136047fca0ea58d914ecf8] => 1 [e0be54c31b26a2bdd9c6eacb9d30c4d4] => 1 [bd5f7c3d97dfdec441f29837e59fba5e] => 1 [02c1ace12a0782fc0a17ee1ef4af2368] => 1 [b065e5f821e5d8ee46673b6d0e2bde94] => 1 [7c759e1adfe9e36b7682f324c68ed84d] => 1 [53481242723186af5392fd5b280e6208] => 1 [deb6a8077fd215e6e4761293495d7955] => 1 [fabee48b24c1a00a40ac1c5f6ce0972a] => 1 [2b25751fa4ec82ea2295765866d1b193] => 1 [291f1b5233e49ce99f6e99c64e9013ec] => 1 [02a5668e07b651fe236a373a30498de6] => 1 [3c1d843670f989f972d5729671b2eb7f] => 1 [074a5203526bdd053f01ad9950b29d0e] => 1 [a51faa150efb52f6ecc2aa58deebd59e] => 1 [c8b712bafd407d6e5dfffa5751ec7f1e] => 1 [9d2be6f2b91b861bae96560104544b63] => 1 [1d3107f8003a80a9f067e73543e557a4] => 1 [6afeb2935de053b70dd4460ead39c113] => 1 ) bool(true)