3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time = microtime(TRUE); usleep(500); echo microtime - $time;
Output for 7.2.6
Warning: Use of undefined constant microtime - assumed 'microtime' (this will throw an Error in a future version of PHP) in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0037
Output for 7.2.0
Warning: Use of undefined constant microtime - assumed 'microtime' (this will throw an Error in a future version of PHP) in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0043
Output for 7.1.10
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0035
Output for 7.1.7
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0024
Output for 7.1.6
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0202
Output for 7.1.5
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0184
Output for 7.1.4
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0187
Output for 7.1.2 - 7.1.3
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0193
Output for 7.1.1
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.005
Output for 7.1.0
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 Warning: A non-numeric value encountered in /in/IkKPc on line 7 -1499148638.0045
Output for 7.0.20
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0042
Output for 7.0.1, 7.0.4, 7.0.11, 7.0.19
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0044
Output for 5.6.19, 7.0.5, 7.0.18
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.005
Output for 7.0.7, 7.0.13, 7.0.17
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0047
Output for 5.6.0, 5.6.11, 5.6.26, 7.0.2, 7.0.16
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0051
Output for 7.0.0, 7.0.15
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0045
Output for 5.6.2, 7.0.6, 7.0.9, 7.0.14
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0046
Output for 7.0.12
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0089
Output for 7.0.10
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0055
Output for 5.6.15, 7.0.8
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0057
Output for 7.0.3
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0043
Output for hhvm-3.15.4
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.1733
Output for 5.6.30
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0066
Output for 5.6.12, 5.6.20, 5.6.29
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0049
Output for 5.6.18, 5.6.28
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0053
Output for 5.6.27
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0064
Output for 5.6.8, 5.6.16 - 5.6.17, 5.6.25
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0048
Output for 5.6.7, 5.6.24
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0052
Output for 5.6.4 - 5.6.5, 5.6.21, 5.6.23
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0054
Output for 5.6.22
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0068
Output for 5.6.9, 5.6.14
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0058
Output for 5.6.3, 5.6.13
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.006
Output for 5.6.6, 5.6.10
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.0059
Output for 5.6.1
Notice: Use of undefined constant microtime - assumed 'microtime' in /in/IkKPc on line 7 -1499148638.007