3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); sleep(2); $calculated = microtime(true) - $start; echo "time_here: " . $calculated . "\n"; ?> # result: 1.9073486328125E-6
based on 5bbDR
Output for 5.6.10, 7.2.6
time_here: 2.0001101493835 # result: 1.9073486328125E-6
Output for 7.2.0
time_here: 2.0000810623169 # result: 1.9073486328125E-6
Output for 7.1.10
time_here: 2.0000731945038 # result: 1.9073486328125E-6
Output for 7.1.7
time_here: 2.0000650882721 # result: 1.9073486328125E-6
Output for 7.1.6
time_here: 2.0000848770142 # result: 1.9073486328125E-6
Output for 7.1.0, 7.1.5
time_here: 2.0001080036163 # result: 1.9073486328125E-6
Output for 5.6.29, 7.0.1, 7.1.4
time_here: 2.0000879764557 # result: 1.9073486328125E-6
Output for 7.1.3
time_here: 2.0000901222229 # result: 1.9073486328125E-6
Output for 5.6.12, 7.1.2
time_here: 2.0000941753387 # result: 1.9073486328125E-6
Output for 7.1.1
time_here: 2.0000951290131 # result: 1.9073486328125E-6
Output for 5.6.3, 5.6.26, 7.0.20
time_here: 2.0000939369202 # result: 1.9073486328125E-6
Output for 7.0.19
time_here: 2.0001010894775 # result: 1.9073486328125E-6
Output for 7.0.18
time_here: 2.0001239776611 # result: 1.9073486328125E-6
Output for 5.6.4, 7.0.17
time_here: 2.0001180171967 # result: 1.9073486328125E-6
Output for 5.6.14, 5.6.23, 7.0.16
time_here: 2.0000929832458 # result: 1.9073486328125E-6
Output for 7.0.15
time_here: 2.000128030777 # result: 1.9073486328125E-6
Output for 7.0.14
time_here: 2.0001020431519 # result: 1.9073486328125E-6
Output for 7.0.13
time_here: 2.0000948905945 # result: 1.9073486328125E-6
Output for 7.0.12
time_here: 2.0000801086426 # result: 1.9073486328125E-6
Output for 7.0.11
time_here: 2.0001130104065 # result: 1.9073486328125E-6
Output for 5.6.18, 7.0.10
time_here: 2.0000989437103 # result: 1.9073486328125E-6
Output for 7.0.9
time_here: 2.0000998973846 # result: 1.9073486328125E-6
Output for 7.0.8
time_here: 2.0000858306885 # result: 1.9073486328125E-6
Output for 5.6.1, 5.6.19, 7.0.7
time_here: 2.0000898838043 # result: 1.9073486328125E-6
Output for 7.0.6
time_here: 2.0000779628754 # result: 1.9073486328125E-6
Output for 5.6.27, 7.0.5
time_here: 2.0000870227814 # result: 1.9073486328125E-6
Output for 7.0.4
time_here: 2.0001139640808 # result: 1.9073486328125E-6
Output for 7.0.3
time_here: 2.0000970363617 # result: 1.9073486328125E-6
Output for 7.0.2
time_here: 2.0000960826874 # result: 1.9073486328125E-6
Output for 5.6.22, 7.0.0
time_here: 2.00008893013 # result: 1.9073486328125E-6
Output for hhvm-3.15.4
time_here: 2.0001699924469 # result: 1.9073486328125E-6
Output for 5.6.30
time_here: 2.0000851154327 # result: 1.9073486328125E-6
Output for 5.6.28
time_here: 2.0001039505005 # result: 1.9073486328125E-6
Output for 5.6.9, 5.6.25
time_here: 2.0000891685486 # result: 1.9073486328125E-6
Output for 5.6.24
time_here: 2.0000841617584 # result: 1.9073486328125E-6
Output for 5.6.21
time_here: 2.0001058578491 # result: 1.9073486328125E-6
Output for 5.6.11, 5.6.20
time_here: 2.0000860691071 # result: 1.9073486328125E-6
Output for 5.6.17
time_here: 2.0000839233398 # result: 1.9073486328125E-6
Output for 5.6.16
time_here: 2.0000920295715 # result: 1.9073486328125E-6
Output for 5.6.15
time_here: 2.0000419616699 # result: 1.9073486328125E-6
Output for 5.6.13
time_here: 2.0000410079956 # result: 1.9073486328125E-6
Output for 5.6.8
time_here: 2.000109910965 # result: 1.9073486328125E-6
Output for 5.6.7
time_here: 2.0001120567322 # result: 1.9073486328125E-6
Output for 5.6.6
time_here: 2.0000910758972 # result: 1.9073486328125E-6
Output for 5.6.5
time_here: 2.0001261234283 # result: 1.9073486328125E-6
Output for 5.6.2
time_here: 2.0001051425934 # result: 1.9073486328125E-6
Output for 5.6.0
time_here: 2.0001709461212 # result: 1.9073486328125E-6