3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x=120311023; $y=321231231; $t=microtime(); $quad_x = $x & 32768 ? 1 : 0; $quad_y = $y & 32768 ? 1 : 0; echo microtime()-$t."\n"; $t=microtime(); list($x,$y)=array($x & 32768 ? 1:0,$y & 32768 ? 1 : 0); echo microtime()-$t."\n";
based on OYuAA
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/37ckg on line 7 Notice: A non well formed numeric value encountered in /in/37ckg on line 7 1.5E-5 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 6.0000000000004E-6
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/37ckg on line 7 Notice: A non well formed numeric value encountered in /in/37ckg on line 7 7.9999999999998E-6 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 1.0000000000001E-6
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/37ckg on line 7 Notice: A non well formed numeric value encountered in /in/37ckg on line 7 1.9999999999999E-5 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 3.9999999999988E-6
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/37ckg on line 7 Notice: A non well formed numeric value encountered in /in/37ckg on line 7 1.0E-5 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 3.9999999999997E-6
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/37ckg on line 7 Notice: A non well formed numeric value encountered in /in/37ckg on line 7 7.9999999999993E-6 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 Notice: A non well formed numeric value encountered in /in/37ckg on line 10 3.0000000000004E-6
Output for 7.0.20
1.4E-5 1.9999999999998E-6
Output for 7.0.6
6.000000000006E-6 2.000000000002E-6
Output for 7.0.5
7.9999999999802E-6 6.000000000006E-6
Output for 7.0.4
9.0000000000368E-6 4.000000000004E-6
Output for 7.0.3
9.9999999999822E-6 7.9999999999802E-6
Output for 7.0.2
9.0000000000368E-6 5.9999999999505E-6
Output for 7.0.1
8.9999999999812E-6 4.000000000004E-6
Output for 7.0.0
1.0999999999983E-5 4.9999999999217E-6
Output for 5.6.28
9.9999999999996E-6 3.0000000000004E-6
Output for 5.6.21
8.0000000000011E-6 3.000000000003E-6
Output for 5.6.20
1.7000000000003E-5 3.9999999999971E-6
Output for 5.6.19
1.4000000000014E-5 4.9999999999772E-6
Output for 5.6.18
2.3999999999996E-5 1.0000000000003E-5
Output for 5.6.10, 5.6.17
1.5000000000043E-5 4.000000000004E-6
Output for 5.5.34, 5.6.4, 5.6.16
1.4999999999987E-5 4.000000000004E-6
Output for 5.6.12, 5.6.15
1.4E-5 4.000000000004E-6
Output for 5.5.26, 5.5.33, 5.6.14
1.4999999999987E-5 6.9999999999792E-6
Output for 5.6.13
1.400000000007E-5 5.9999999999505E-6
Output for 5.6.6, 5.6.11
1.4000000000014E-5 6.000000000006E-6
Output for 5.6.9
1.299999999993E-5 4.000000000004E-6
Output for 5.6.8
1.299999999993E-5 6.9999999999792E-6
Output for 5.6.7
1.4E-5 7.000000000007E-6
Output for 5.6.5
1.3999999999958E-5 6.9999999999792E-6
Output for 5.6.3
1.4999999999987E-5 5.9999999999505E-6
Output for 5.6.2
1.2999999999999E-5 4.000000000004E-6
Output for 5.6.1
1.5000000000015E-5 3.9999999999762E-6
Output for 5.6.0
1.2999999999985E-5 4.000000000004E-6
Output for 5.5.35
6.9999999999792E-6 3.0000000000308E-6
Output for 5.5.13, 5.5.24, 5.5.32
1.6000000000016E-5 8.000000000008E-6
Output for 5.5.31
1.5999999999988E-5 4.000000000004E-6
Output for 5.5.30
1.5000000000043E-5 5.0000000000328E-6
Output for 5.5.29
1.7000000000045E-5 6.9999999999792E-6
Output for 5.5.28
1.4E-5 7.0000000000001E-6
Output for 5.5.14, 5.5.27
1.8999999999991E-5 6.9999999999792E-6
Output for 5.5.25
1.3000000000041E-5 4.000000000004E-6
Output for 5.5.23
1.5000000000015E-5 5.000000000005E-6
Output for 5.5.22
1.4999999999987E-5 4.9999999999772E-6
Output for 5.5.21
1.4000000000014E-5 5.0000000000328E-6
Output for 5.5.20
1.9999999999909E-5 9.9999999999545E-6
Output for 5.5.19
1.6000000000016E-5 4.000000000004E-6
Output for 5.5.18
1.4E-5 8.0000000000002E-6
Output for 5.5.15 - 5.5.16
1.6000000000016E-5 4.9999999999772E-6
Output for 5.5.12
1.7999999999962E-5 7.0000000000903E-6
Output for 5.5.11
2.1999999999966E-5 9.0000000000368E-6
Output for 5.5.10
1.7000000000045E-5 5.9999999999505E-6
Output for 5.5.9
1.400000000007E-5 6.9999999999792E-6
Output for 5.5.8
1.4999999999987E-5 7.9999999999941E-6
Output for 5.5.7
5.1000000000023E-5 7.000000000007E-6
Output for 5.5.6
2.3999999999968E-5 8.000000000008E-6
Output for 5.5.5
2.0999999999993E-5 1.000000000001E-5
Output for 5.5.4
1.599999999996E-5 5.0000000000328E-6
Output for 5.5.3
1.6999999999934E-5 6.9999999999792E-6
Output for 5.5.2
1.7999999999962E-5 4.000000000004E-6
Output for 5.5.1
1.4999999999987E-5 5.0000000000328E-6
Output for 5.5.0
1.400000000007E-5 5.0000000000328E-6