3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = explode(' ', microtime()); $r = substr($t[1], 3) . rand(111, 999) . substr($t[0], 2, 6); echo dechex($r); $number = 4; $hexString = dechex($number); $result = str_pad($hexString,6,"0",STR_PAD_LEFT); echo($result);
based on fh8dJ
Output for 7.2.6
22ca812eaf740f000004
Output for 7.2.0
22ca811f8bb0ac000004
Output for 7.1.10
22ca811e4b4333000004
Output for 7.1.7
22ca811e2cca0d000004
Output for 7.1.6
22ca812f857102000004
Output for 7.1.5
22ca8135b834aa000004
Output for 7.1.4
22ca8128aaab65000004
Output for 7.1.3
22ca814f96a33a000004
Output for 7.1.2
22ca814279aac2000004
Output for 7.1.1
22ca81314ed6e8000004
Output for 7.1.0
22ca812fe0a954000004
Output for 7.0.20
22ca81330958db000004
Output for 7.0.19
22ca81341c0564000004
Output for 7.0.18
22ca812ba542bf000004
Output for 7.0.17
22ca81474d59cb000004
Output for 7.0.16
22ca813fe94f77000004
Output for 7.0.15
22ca811f6d3c39000004
Output for 7.0.14
22ca8140fbe991000004
Output for 7.0.13
22ca8129eac7fb000004
Output for 7.0.12
22ca813a6d7244000004
Output for 7.0.11
22ca8130f34c5c000004
Output for 7.0.10
22ca814850c367000004
Output for 7.0.9
22ca812d9ccc6d000004
Output for 7.0.8
22ca8121a1c89b000004
Output for 7.0.7
22ca8145df22f3000004
Output for 7.0.6
22ca813c8383ff000004
Output for 7.0.5
22ca8142795ff3000004
Output for 7.0.4
22ca8148417bbd000004
Output for 7.0.3
22ca813838dc30000004
Output for 7.0.2
22ca813d2b5f5b000004
Output for 7.0.1
22ca814af026e2000004
Output for 7.0.0
22ca8139c5a391000004
Output for hhvm-3.15.4
22ca814a3c48e4000004
Output for 5.6.30
22ca81432139f3000004
Output for 5.6.29
22ca811e88531f000004
Output for 5.6.28
22ca812ab12928000004
Output for 5.6.27
22ca811f5df619000004
Output for 5.6.26
22ca814d527bb3000004
Output for 5.6.25
22ca814686fa38000004
Output for 5.6.24
22ca8145a21986000004
Output for 5.6.23
22ca812a27cda8000004
Output for 5.6.22
22ca813097c0b5000004
Output for 5.6.21
22ca814b0eaa65000004
Output for 5.6.20
22ca814b5af2d2000004
Output for 5.6.19
22ca813e4d425c000004
Output for 5.6.18
22ca8146c404f2000004
Output for 5.6.17
22ca814d8f8354000004
Output for 5.6.16
22ca8123b7d978000004
Output for 5.6.15
22ca81360454e7000004
Output for 5.6.14
22ca8136bb6e3b000004
Output for 5.6.13
22ca8136045310000004
Output for 5.6.12
22ca812905e813000004
Output for 5.6.11
22ca811faa43dd000004
Output for 5.6.10
22ca814dbd55f0000004
Output for 5.6.9
22ca812b778720000004
Output for 5.6.8
22ca812aa1e548000004
Output for 5.6.7
22ca81500120ce000004
Output for 5.6.6
22ca8148da10f5000004
Output for 5.6.5
22ca81285e05ec000004
Output for 5.6.4
22ca8152a08a76000004
Output for 5.6.3
22ca813e3e08c8000004
Output for 5.6.2
22ca81303c34ff000004
Output for 5.6.1
22ca8138d18009000004
Output for 5.6.0
22ca8122e238b3000004