3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = floor(microtime(true) * 1000); $uid = 1 << 45 + 9 + 9 | random_int(0, 0b111111111) << 45 + 9 | $time << 9 | random_int(0, 0b111111111); $uid = dechex($uid); $uid = hex2bin($uid); $uid = base64_encode($uid); $uid = str_replace(['=', '+', '/'], ['', '-', '_'], $uid); var_dump($uid);
Output for git.master
string(11) "o4MNwUNue04"
Output for git.master_jit
string(11) "7AMNwUNuSGA"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.12 ms | 406 KiB | 5 Q