3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 5; $t = microtime(); $b = $a === 5; echo microtime() - $t; echo PHP_EOL; $t = microtime(); $b = 5 === $a; echo microtime() - $t;
based on bXW12
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/11keh on line 8 Notice: A non well formed numeric value encountered in /in/11keh on line 8 8.9999999999999E-6 Notice: A non well formed numeric value encountered in /in/11keh on line 16 Notice: A non well formed numeric value encountered in /in/11keh on line 16 9.999999999997E-7
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/11keh on line 8 Notice: A non well formed numeric value encountered in /in/11keh on line 8 9.0000000000003E-6 Notice: A non well formed numeric value encountered in /in/11keh on line 16 Notice: A non well formed numeric value encountered in /in/11keh on line 16 9.9999999999927E-7
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/11keh on line 8 Notice: A non well formed numeric value encountered in /in/11keh on line 8 1.5000000000001E-5 Notice: A non well formed numeric value encountered in /in/11keh on line 16 Notice: A non well formed numeric value encountered in /in/11keh on line 16 2.0000000000003E-6
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/11keh on line 8 Notice: A non well formed numeric value encountered in /in/11keh on line 8 7.9999999999993E-6 Notice: A non well formed numeric value encountered in /in/11keh on line 16 Notice: A non well formed numeric value encountered in /in/11keh on line 16 1.0000000000001E-6
Output for 7.0.20
1.4E-5 1.0000000000001E-6
Output for 7.0.11
8.9999999999999E-6 1.0000000000001E-6
Output for 5.6.23, 7.0.10
9.9999999999996E-6 3.9999999999997E-6
Output for 5.6.22, 7.0.9
9.9999999999996E-6 3.0000000000004E-6
Output for 7.0.3, 7.0.7 - 7.0.8
7.0000000000001E-6 2.9999999999995E-6
Output for 7.0.6
7.9999999999998E-6 3.0E-6
Output for 7.0.1, 7.0.5
8.0000000000002E-6 2.9999999999995E-6
Output for 7.0.4
8.0000000000002E-6 3.0E-6
Output for 7.0.2
9.0000000000003E-6 1.9999999999998E-6
Output for 7.0.0
8.0000000000002E-6 4.0000000000005E-6
Output for 5.6.26
0 -1.0E-6
Output for 5.6.25
9.0000000000003E-6 3.0000000000004E-6
Output for 5.6.24
1.0E-5 4.0000000000005E-6
Output for 5.6.3, 5.6.21
9.0000000000003E-6 2.0000000000003E-6
Output for 5.6.20
9.9999999999996E-6 2.0000000000003E-6
Output for 5.6.10, 5.6.15, 5.6.19
1.3E-5 3.9999999999997E-6
Output for 5.6.18
1.8E-5 1.9999999999994E-6
Output for 5.6.8, 5.6.14, 5.6.17
1.3E-5 3.0000000000004E-6
Output for 5.6.16
1.3E-5 1.9999999999994E-6
Output for 5.6.13
1.0E-5 2.0000000000003E-6
Output for 5.6.12
1.3999999999999E-5 2.9999999999995E-6
Output for 5.6.11
1.1E-5 3.0000000000004E-6
Output for 5.6.9
1.1E-5 1.9999999999994E-6
Output for 5.6.7
1.2000000000001E-5 3.0000000000004E-6
Output for 5.6.6
1.3E-5 2.0000000000003E-6
Output for 5.6.5
1.2E-5 2.9999999999995E-6
Output for 5.6.2, 5.6.4
8.9999999999995E-6 3.0000000000004E-6
Output for 5.6.1
1.0E-5 3.0000000000004E-6
Output for 5.6.0
8.9999999999995E-6 2.0000000000003E-6