3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = microtime(); $b = 1000 >> 2; $c = microtime(); echo $a - $c."\n"; $a = microtime(); $b = 1000 / 4; $c = microtime(); echo $a - $c."\n";
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/i4Oi0 on line 6 Notice: A non well formed numeric value encountered in /in/i4Oi0 on line 6 -7.0000000000001E-6 Notice: A non well formed numeric value encountered in /in/i4Oi0 on line 12 Notice: A non well formed numeric value encountered in /in/i4Oi0 on line 12 -2.0000000000003E-6
Output for 7.0.14
-7.0000000000001E-6 -1.0000000000001E-6
Output for 7.0.6
-4.9999999999772E-6 -1.0000000000288E-6
Output for 7.0.5
-3.9999999999971E-6 -1.000000000001E-6
Output for 7.0.4
-5.9999999999505E-6 -1.0000000000288E-6
Output for 7.0.3
-6.0000000000615E-6 0
Output for 7.0.2
-6.9999999999792E-6 -1.0000000000288E-6
Output for 7.0.1
-7.9999999999802E-6 -1.000000000001E-6
Output for 7.0.0
-6.000000000006E-6 -9.9999999997324E-7
Output for 5.6.28
-9.0000000000003E-6 -1.0000000000001E-6
Output for 5.5.29, 5.6.21
-6.0000000000615E-6 -1.0000000000288E-6
Output for 5.6.20
-9.0000000000368E-6 -1.9999999999465E-6
Output for 5.6.19
-7.0000000000903E-6 -1.0000000000288E-6
Output for 5.6.18
-1.0999999999983E-5 0
Output for 5.6.17
-1.2000000000002E-5 -1.9999999999985E-6
Output for 5.6.16
-8.000000000008E-6 -9.9999999991773E-7
Output for 5.5.26, 5.6.8, 5.6.10, 5.6.15
-8.9999999999812E-6 -2.000000000002E-6
Output for 5.6.14
-5.0000000000328E-6 -2.000000000002E-6
Output for 5.5.30, 5.5.35, 5.6.13
-8.000000000008E-6 -1.9999999999465E-6
Output for 5.6.12
-8.000000000008E-6 -1.0000000000288E-6
Output for 5.6.11
-6.0000000000615E-6 -9.9999999991773E-7
Output for 5.6.9
-1.1999999999998E-5 -3.000000000003E-6
Output for 5.6.7
-8.0000000000011E-6 -2.000000000002E-6
Output for 5.5.34
-9.000000000009E-6 -2.000000000002E-6
Output for 5.5.33
-9.9999999999961E-6 -2.000000000002E-6
Output for 5.5.32
-1.000000000001E-5 -9.9999999997324E-7
Output for 5.5.31
-1.3999999999958E-5 -2.0000000000575E-6
Output for 5.5.28
-5.9999999999921E-6 -9.9999999998712E-7
Output for 5.5.27
-6.9999999999792E-6 -9.9999999997324E-7
Output for 5.5.25
-1.3000000000041E-5 -3.0000000000863E-6
Output for 5.5.24
-1.2000000000012E-5 -1.000000000001E-6
Output for 5.4.45
-2.1000000000049E-5 -3.0000000000863E-6
Output for 5.4.44
-1.6999999999934E-5 -2.9999999999752E-6
Output for 5.4.43
-2.9000000000001E-5 -1.6E-5
Output for 5.4.42
-2.8000000000028E-5 -5.0000000000328E-6
Output for 5.4.41
-2.4999999999942E-5 -4.000000000004E-6
Output for 5.4.40
-2.000000000002E-5 -5.0000000000328E-6
Output for 5.4.39
-3.1999999999921E-5 -1.5999999999905E-5
Output for 5.4.38
-3.6999999999995E-5 -6.000000000006E-6
Output for 5.4.37
-2.1000000000049E-5 -5.0000000000328E-6
Output for 5.4.36
-2.599999999997E-5 -5.9999999999505E-6
Output for 5.4.35
-2.0999999999993E-5 -4.9999999999772E-6
Output for 5.2.6, 5.4.34
-1.2000000000012E-5 -2.9999999999752E-6
Output for 5.3.20, 5.4.32
-1.299999999993E-5 -2.9999999999752E-6
Output for 5.4.31
-1.299999999993E-5 -4.000000000004E-6
Output for 5.4.30
-1.2000000000001E-5 -2.9999999999995E-6
Output for 5.4.29
-1.3000000000006E-5 0
Output for 5.4.28
-1.5000000000001E-5 0
Output for 5.4.27
-1.6000000000016E-5 0
Output for 5.4.26
-1.3999999999986E-5 -4.000000000004E-6
Output for 5.4.25
-1.6000000000016E-5 -1.000000000001E-6
Output for 5.3.5, 5.4.24
-1.3999999999958E-5 -2.9999999999752E-6
Output for 5.4.23
-1.4000000000014E-5 -1.4999999999987E-5
Output for 5.4.22
-1.6999999999989E-5 -9.9999999997324E-7
Output for 5.4.21
-1.6999999999989E-5 -4.000000000004E-6
Output for 5.4.4, 5.4.20
-1.2999999999985E-5 -2.9999999999752E-6
Output for 5.4.19
-1.2000000000012E-5 -2.0000000000575E-6
Output for 5.4.18
-1.3000000000041E-5 -2.0000000000575E-6
Output for 5.4.17
-1.8000000000074E-5 -2.9999999999752E-6
Output for 5.4.16
-1.6999999999934E-5 -5.0000000000328E-6
Output for 5.4.15
-1.7999999999962E-5 -5.0000000000328E-6
Output for 5.2.3, 5.4.14
-1.7999999999962E-5 -4.000000000004E-6
Output for 5.3.24, 5.4.13
-1.6000000000016E-5 -4.000000000004E-6
Output for 5.4.12
-1.3999999999958E-5 -3.0000000000863E-6
Output for 5.3.2, 5.3.27, 5.4.11
-1.3999999999958E-5 -4.000000000004E-6
Output for 5.4.10
-1.299999999993E-5 0
Output for 5.4.9
-1.2999999999999E-5 -4.000000000004E-6
Output for 5.4.8
-1.2999999999999E-5 -2.9999999999891E-6
Output for 5.4.7
-1.3000000000013E-5 -3.000000000003E-6
Output for 5.4.6
-1.5000000000015E-5 -6.9999999999792E-6
Output for 5.4.5
-1.4000000000014E-5 -3.000000000003E-6
Output for 5.4.3
-1.4000000000014E-5 -2.9999999999752E-6
Output for 5.4.1 - 5.4.2
-1.4000000000014E-5 -4.000000000004E-6
Output for 5.3.25, 5.4.0
-1.3000000000041E-5 -2.9999999999752E-6
Output for 5.3.29
-1.7000000000045E-5 -2.9999999999752E-6
Output for 5.2.9, 5.3.28
-1.4999999999987E-5 -4.000000000004E-6
Output for 5.3.26
-1.3000000000041E-5 -4.9999999999217E-6
Output for 5.3.23
-1.3999999999958E-5 -7.0000000000903E-6
Output for 5.3.3, 5.3.22
-1.3000000000041E-5 -4.000000000004E-6
Output for 5.3.21
-1.5999999999905E-5 -4.000000000004E-6
Output for 5.2.16, 5.3.19
-1.2999999999999E-5 -2.9999999999961E-6
Output for 5.3.18
-1.2999999999999E-5 -3.000000000003E-6
Output for 5.2.11, 5.3.17
-1.2999999999985E-5 -4.000000000004E-6
Output for 5.3.16
-1.1999999999984E-5 -4.000000000004E-6
Output for 5.3.15
-1.6000000000016E-5 -6.000000000006E-6
Output for 5.3.10 - 5.3.11, 5.3.14
-1.1999999999956E-5 -4.000000000004E-6
Output for 5.3.13
-1.3000000000041E-5 -3.0000000000308E-6
Output for 5.3.12
-1.2000000000012E-5 -3.9999999999485E-6
Output for 5.3.9
-1.3000000000041E-5 0
Output for 5.3.8
-1.8999999999991E-5 -5.0000000000328E-6
Output for 5.2.2, 5.3.7
-1.400000000007E-5 -2.9999999999752E-6
Output for 5.3.6
-1.1999999999901E-5 -5.0000000000328E-6
Output for 5.3.4
-1.6999999999934E-5 -6.9999999999792E-6
Output for 5.3.1
-1.299999999993E-5 -1.9999999999465E-6
Output for 5.2.5, 5.3.0
-1.2000000000012E-5 -4.000000000004E-6
Output for 5.2.17
-1.2999999999999E-5 -4.0000000000005E-6
Output for 5.2.15
-1.0999999999997E-5 -3.000000000003E-6
Output for 5.2.14
-1.3999999999986E-5 -5.000000000005E-6
Output for 5.2.13
-1.2000000000012E-5 -4.9999999999772E-6
Output for 5.2.12
-1.5000000000015E-5 -3.000000000003E-6
Output for 5.2.10
-1.1999999999956E-5 -4.9999999999772E-6
Output for 5.2.8
-1.1999999999956E-5 -2.9999999999752E-6
Output for 5.2.7
-1.2000000000012E-5 -3.0000000000308E-6
Output for 5.2.4
-1.400000000007E-5 -3.0000000000863E-6
Output for 5.2.1
-1.299999999993E-05 -6.0000000000615E-06
Output for 5.2.0
-1.0999999999983E-05 -9.9999999991773E-07
Output for 5.1.6
-1.1999999999901E-05 -3.0000000000863E-06
Output for 5.1.5
-1.6000000000016E-05 -4.000000000004E-06
Output for 5.1.4
-1.4999999999987E-05 -3.999999999893E-06
Output for 5.1.3
-1.2000000000012E-05 -2.9999999999752E-06
Output for 5.1.2
-1.3000000000041E-05 -1.9999999999465E-06
Output for 4.3.10, 5.1.1
-1.3000000000041E-05 -4.000000000004E-06
Output for 5.1.0
-1.3999999999958E-05 -2.9999999999752E-06
Output for 5.0.5
-2.4E-05 -2.0000000000003E-06
Output for 5.0.4
-1.0999999999997E-05 -2.9999999999961E-06
Output for 5.0.3
-1.6000000000002E-05 -4.000000000004E-06
Output for 5.0.2
-1.5000000000001E-05 -3.9999999999901E-06
Output for 4.3.11, 5.0.1
-1.4999999999987E-05 -2.9999999999752E-06
Output for 5.0.0
-1.6000000000016E-05 -3.9999999999762E-06
Output for 4.4.9
-1.2999999999985E-05 -3.000000000003E-06
Output for 4.4.8
-1.5999999999988E-05 -3.9999999999762E-06
Output for 4.4.7
-1.1000000000039E-05 -5.0000000000328E-06
Output for 4.4.6
-1.6999999999989E-05 -4.000000000004E-06
Output for 4.4.5
-1.0999999999983E-05 -2.9999999999752E-06
Output for 4.4.4
-1.4000000000014E-05 -4.000000000004E-06
Output for 4.4.3
-1.0999999999983E-05 -1.0000000000288E-06
Output for 4.4.2
-1.0999999999983E-05 -4.000000000004E-06
Output for 4.4.1
-1.6000000000016E-05 -5.0000000000328E-06
Output for 4.4.0
-1.3999999999958E-05 -1.9999999999465E-06
Output for 4.3.9
-1.9999999999909E-05 -5.0000000000328E-06
Output for 4.3.8
-1.7999999999962E-05 -3.0000000000863E-06
Output for 4.3.7
-2.000000000002E-05 -4.9999999999217E-06
Output for 4.3.6
-1.8000000000074E-05 -4.9999999999217E-06
Output for 4.3.5
-1.6999999999934E-05 -4.000000000004E-06
Output for 4.3.4
-1.8999999999991E-05 -5.0000000000328E-06
Output for 4.3.3
-1.7000000000045E-05 -2.9999999999752E-06
Output for 4.3.2
-1.5999999999905E-05 -6.0000000000615E-06
Output for 4.3.1
-2.599999999997E-05 -6.0000000000615E-06
Output for 4.3.0
-1.6000000000016E-05 -2.9999999999752E-06