3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (phpversion() != '7.0.0') { die; } $ids = []; for($i=0; $i<100000; $i++) { $time = time(); $randomString1 = bin2hex(random_bytes(20)); $randomString2 = bin2hex(random_bytes(10)); $ids[] = md5($time.$randomString1.$randomString2); } $a = array_count_values($ids); asort($a); var_dump( $a[0] );
based on SgSth
Output for 5.5.0 - 5.6.28, 7.0.1 - 7.2.0
Output for 7.0.0
Notice: Undefined offset: 0 in /in/dNFFe on line 21 NULL