3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $us = strstr(microtime(), ' ', true); echo intval(strval($us * 1000) . rand(100, 999));
based on pBItG
Output for 7.0.24, 7.0.26 - 7.0.27, 7.2.3
4
Output for 5.6.0 - 5.6.1, 5.6.3, 5.6.5 - 5.6.6, 5.6.9, 5.6.11 - 5.6.14, 5.6.16 - 5.6.19, 5.6.21 - 5.6.23, 5.6.27 - 5.6.30, 7.0.20 - 7.0.22, 7.1.7, 7.2.2
6
Output for 5.6.2, 5.6.7 - 5.6.8, 5.6.10, 7.0.1 - 7.0.2, 7.0.4, 7.0.7, 7.0.11 - 7.0.15, 7.0.19, 7.1.0 - 7.1.1, 7.1.9 - 7.1.10, 7.1.12 - 7.2.1
5
Output for 5.6.15, 7.0.3, 7.0.9 - 7.0.10, 7.0.18, 7.1.8, 7.1.11
7
Output for 7.1.6
25
Output for 7.1.5
27
Output for 7.1.4
32
Output for 7.1.3
24
Output for 7.1.2
22
Output for 7.0.25
33
Output for 5.6.25, 7.0.0, 7.0.23
9
Output for 7.0.17
15
Output for 7.0.16
14
Output for 5.6.4, 5.6.20, 5.6.24, 5.6.26, 7.0.8
8
Output for 7.0.6
13
Output for 7.0.5
11
Output for hhvm-3.22.0
251
Output for hhvm-3.21.3
245
Output for hhvm-3.18.5
302