3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tmp=microtime(true); sleep(2); echo(microtime(true)-$tmp); ?>
based on LJ1OV
Output for 7.2.6
2.0000910758972
Output for 7.2.0
2.0000739097595
Output for 7.1.10
2.000067949295
Output for 5.6.10, 7.1.7
2.0001130104065
Output for 7.1.6
2.0001401901245
Output for 7.0.19, 7.1.5
2.0000948905945
Output for 7.1.4
2.0001289844513
Output for 5.6.5, 7.1.3
2.000100851059
Output for 5.6.0, 5.6.4, 5.6.17, 7.1.2
2.0001089572906
Output for 7.0.7, 7.0.11, 7.1.1
2.0001218318939
Output for 7.1.0

Process exited with code 137.
Output for 7.0.20
2.0001168251038
Output for 7.0.18
2.000118970871
Output for 7.0.17
2.0001358985901
Output for 5.6.20, 7.0.16
2.0001239776611
Output for 7.0.15
2.0001049041748
Output for 5.6.15, 7.0.1, 7.0.5, 7.0.14
2.0000920295715
Output for 5.6.6, 7.0.3, 7.0.13
2.0001029968262
Output for 7.0.12
2.0001180171967
Output for 5.6.26, 5.6.30, 7.0.10
2.000097990036
Output for 7.0.9
2.0032689571381
Output for 7.0.8
2.0000908374786
Output for 7.0.6
2.0001409053802
Output for 7.0.4
2.0001032352448
Output for 7.0.2
2.0165090560913
Output for 7.0.0
2.0000858306885
Output for hhvm-3.15.4
2.0001039505005
Output for 5.6.29
2.0001111030579
Output for 5.6.28
2.0000970363617
Output for 5.6.27
2.0000939369202
Output for 5.6.25
2.0001010894775
Output for 5.6.24
2.0002200603485
Output for 5.6.23
2.0001459121704
Output for 5.6.22
2.0005559921265
Output for 5.6.21
2.0001080036163
Output for 5.6.19
2.0000891685486
Output for 5.6.18
2.0000998973846
Output for 5.6.16
2.0001020431519
Output for 5.6.14
2.0001151561737
Output for 5.6.13
2.0165691375732
Output for 5.6.12
2.0065288543701
Output for 5.6.11
2.0000989437103
Output for 5.6.9
2.0094208717346
Output for 5.6.8
2.0086669921875
Output for 5.6.7
2.0122058391571
Output for 5.6.3
2.0001120567322
Output for 5.6.2
2.0001320838928
Output for 5.6.1
2.002357006073