3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = mt_rand ( 0, 0xffffff ); // trust the library, love the library... $output = sprintf ( "%06x" , $num ); // muchas smoochas to you, PHP! return $output;
Output for 4.3.0 - 7.1.7