3v4l.org

run code in 200+ php & hhvm versions
<?php $time_start = microtime(true); $time_end = microtime(true); $time = $time_end - $time_start; $array = explode('.', $time); $msec = str_pad(substr($array[1], 0, 3) , 3, "0"); echo $time; echo ':'; echo $msec;
based on pOCNI
Output for 7.3.4, 7.4.0alpha2
9.0599060058594E-6:059
Output for 7.2.2, 7.2.5, 7.2.11, 7.2.16, 7.2.18 - 7.2.20, 7.4.0alpha1
5.9604644775391E-6:960
Output for 7.1.25 - 7.1.29, 7.3.1, 7.3.5, 7.3.7
9.5367431640625E-7:536
Output for 7.1.30, 7.3.0, 7.3.2 - 7.3.3, 7.3.6
Notice: Undefined offset: 1 in /in/9S7lG on line 8 0:000
Output for 7.2.6, 7.2.13, 7.2.17
5.0067901611328E-6:006
Output for 7.2.3, 7.2.10, 7.2.14 - 7.2.15
8.1062316894531E-6:106
Output for 7.2.7, 7.2.12
7.8678131103516E-6:867
Output for 7.2.9
7.1525573730469E-6:152
Output for 7.2.0 - 7.2.1, 7.2.4, 7.2.8
6.9141387939453E-6:914