3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(); for($i=0; $i < 1000; $i++) { rand(1,9999999); } echo $time = (microtime()-$time)/1000; echo "\n"; $time = microtime(); for($i=0; $i < 1000; $i++) { mt_rand(1,9999999); } echo $time = (microtime()-$time)/1000;
Output for 7.3.1
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.61E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 1.07E-7
Output for 7.2.4, 7.3.0
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 6.5E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 4.4E-8
Output for 7.2.13
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 7.7E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 5.5E-8
Output for 7.2.12
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 8.1E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 5.9E-8
Output for 7.2.11
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 9.6E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 7.3E-8
Output for 7.2.10
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 9.0E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 6.5E-8
Output for 7.2.9
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.56E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 1.18E-7
Output for 7.2.8
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.03E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 6.1E-8
Output for 7.2.7
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 6.9E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 4.3E-8
Output for 7.2.6
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 6.6E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 4.4E-8
Output for 7.2.5
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 7.4E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 7.6E-8
Output for 7.2.3
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.01E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 7.2E-8
Output for 7.2.2
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 6.5E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 4.3E-8
Output for 7.2.1
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 8.7E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 6.7E-8
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 9.6E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 4.4E-8
Output for 7.1.25
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.74E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 1.56E-7
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 7.9E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 7.0E-8
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.98E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 2.01E-7
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 9.5999999999999E-8 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 7.6000000000001E-8
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 7 1.21E-7 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 Notice: A non well formed numeric value encountered in /in/tTSiY on line 13 1.25E-7
Output for 7.0.20
8.1E-8 5.7E-8
Output for 7.0.14
1.1E-7 9.3999999999999E-8
Output for 7.0.6
7.299999999999E-8 5.8000000000002E-8
Output for 7.0.5
1.1399999999995E-7 1.0199999999994E-7
Output for 7.0.4
9.600000000004E-8 7.8999999999996E-8
Output for 7.0.3
7.4999999999999E-8 7.1000000000002E-8
Output for 7.0.2
8.7000000000059E-8 9.0000000000035E-8
Output for 7.0.1
9.9999999999989E-8 7.9999999999997E-8
Output for 7.0.0
1.0399999999999E-7 1.0500000000002E-7
Output for 5.6.28
2.63E-7 2.69E-7
Output for 5.6.21
3.3699999999992E-7 1.8499999999999E-7
Output for 5.6.20
1.97E-7 1.43E-7
Output for 5.6.19
1.2200000000001E-7 1.2000000000001E-7
Output for 5.6.18
1.9999999999998E-7 1.5900000000002E-7
Output for 5.6.17
1.5299999999996E-7 1.3599999999997E-7
Output for 5.6.16
2.6499999999996E-7 1.8200000000002E-7
Output for 5.6.15
1.9499999999995E-7 1.7299999999998E-7
Output for 5.6.14
2.0000000000009E-7 1.8300000000004E-7
Output for 5.6.13
2.0199999999998E-7 1.9799999999998E-7
Output for 5.6.12
1.94E-7 1.7500000000001E-7
Output for 5.6.11
1.9499999999995E-7 1.7600000000006E-7
Output for 5.6.10
1.92E-7 1.71E-7
Output for 5.6.9
1.8499999999999E-7 2.0900000000001E-7
Output for 5.6.8
1.7199999999995E-7 1.5100000000001E-7
Output for 5.5.35
2.1400000000005E-7 1.9800000000003E-7
Output for 5.5.34
2.3200000000001E-7 2.0200000000004E-7
Output for 5.5.33
2.3600000000001E-7 2.1300000000002E-7
Output for 5.4.7, 5.5.32
1.8200000000002E-7 1.4500000000001E-7
Output for 5.5.31
1.7300000000003E-7 1.5299999999996E-7
Output for 5.5.30
1.8899999999999E-7 1.68E-7
Output for 5.5.29
1.5700000000007E-7 1.3699999999994E-7
Output for 5.5.28
2.1399999999999E-7 1.96E-7
Output for 5.5.27
1.99E-7 1.9000000000002E-7
Output for 5.5.26
2.0600000000004E-7 1.97E-7
Output for 5.5.25
1.8899999999999E-7 1.6700000000003E-7
Output for 5.5.24
1.7699999999998E-7 1.8099999999999E-7
Output for 5.4.45
1.1300000000003E-7 1.0100000000002E-7
Output for 5.4.44
2.1199999999999E-7 2.6099999999996E-7
Output for 5.4.43
2.22E-7 1.86E-7
Output for 5.4.42
3.71E-7 3.37E-7
Output for 5.4.41
4.0000000000001E-7 3.0799999999997E-7
Output for 5.4.40
2.3499999999999E-7 2.6099999999996E-7
Output for 5.4.39
3.7700000000002E-7 3.4299999999998E-7
Output for 5.4.38
2.1899999999997E-7 2.6999999999999E-7
Output for 5.4.37
2.1499999999997E-7 2.6399999999993E-7
Output for 5.4.36
2.1199999999999E-7 2.1199999999999E-7
Output for 5.4.35
2.19E-7 1.8499999999999E-7
Output for 5.4.34
2.0999999999993E-7 2.6399999999993E-7
Output for 5.4.32
1.5700000000002E-7 1.3700000000005E-7
Output for 5.4.31
1.8600000000002E-7 1.5999999999999E-7
Output for 5.4.30
1.7300000000003E-7 1.3199999999997E-7
Output for 5.4.29
1.6300000000002E-7 1.4899999999995E-7
Output for 5.4.28
1.4699999999995E-7 1.5999999999999E-7
Output for 5.4.27
1.4400000000003E-7 1.2999999999996E-7
Output for 5.4.26
9.6499999999999E-7 2.1500000000008E-7
Output for 5.4.25
1.62E-7 1.5200000000004E-7
Output for 5.4.24
1.5399999999999E-7 1.6100000000008E-7
Output for 5.4.23
1.8899999999999E-7 1.3799999999997E-7
Output for 5.4.22
1.6400000000005E-7 1.3300000000005E-7
Output for 5.4.21
1.6299999999991E-7 1.3599999999991E-7
Output for 5.4.20
1.6099999999997E-7 1.5899999999991E-7
Output for 5.4.19
1.8299999999993E-7 1.6300000000002E-7
Output for 5.4.18
1.7200000000006E-7 1.5200000000004E-7
Output for 5.4.17
1.5699999999996E-7 1.4000000000003E-7
Output for 5.4.16
1.59E-7 1.52E-7
Output for 5.4.15
1.57E-7 1.4E-7
Output for 5.4.14
1.9000000000001E-7 1.91E-7
Output for 5.4.13
1.65E-7 1.71E-7
Output for 5.4.12
1.7600000000001E-7 1.5300000000001E-7
Output for 5.4.11
1.68E-7 1.67E-7
Output for 5.4.10
2.0500000000001E-7 1.4999999999998E-7
Output for 5.4.9
1.8299999999999E-7 1.5199999999999E-7
Output for 5.4.8
1.62E-7 1.4599999999998E-7
Output for 5.4.6
1.7299999999998E-7 1.93E-7
Output for 5.4.5
1.7299999999998E-7 1.6699999999992E-7
Output for 5.4.4
1.62E-7 1.5999999999994E-7
Output for 5.4.3
1.62E-7 1.9999999999998E-7
Output for 5.4.2
1.7499999999993E-7 1.4999999999998E-7
Output for 5.4.1
1.5599999999993E-7 1.4600000000009E-7
Output for 5.4.0
1.7900000000004E-7 1.6800000000006E-7
Output for 5.3.29
1.8700000000005E-7 1.5700000000007E-7
Output for 5.3.28
2.1700000000002E-7 1.66E-7
Output for 5.3.27
1.9900000000006E-7 2.1499999999997E-7
Output for 5.3.26
2.5200000000003E-7 2.6400000000004E-7
Output for 5.3.25
2.93E-7 2.69E-7
Output for 5.3.24
2.4E-7 2.49E-7
Output for 5.3.23
3.5400000000002E-7 2.6100000000001E-7
Output for 5.3.22
3.4300000000001E-7 3.07E-7
Output for 5.3.21
3.1400000000004E-7 3.0200000000002E-7
Output for 5.3.20
2.2E-7 1.9399999999997E-7
Output for 5.3.19
1.8100000000004E-7 1.7499999999998E-7
Output for 5.3.18
1.8800000000002E-7 2.1100000000002E-7
Output for 5.3.17
1.8099999999999E-7 1.9799999999998E-7
Output for 5.3.16
3.1599999999998E-7 3.0299999999994E-7
Output for 5.3.15
4.0600000000002E-7 3.86E-7
Output for 5.3.14
3.0399999999997E-7 2.1799999999994E-7
Output for 5.3.13
2.0799999999999E-7 1.6699999999992E-7
Output for 5.3.12
2.3600000000001E-7 1.66E-7
Output for 5.3.11
1.8799999999997E-7 1.9499999999995E-7
Output for 5.3.10
3.2399999999999E-7 4.3500000000007E-7
Output for 5.3.9
3.0400000000008E-7 3.6000000000003E-7
Output for 5.3.8
1.8399999999996E-7 1.6800000000006E-7
Output for 5.3.7
1.83E-7 1.83E-7
Output for 5.3.6
1.97E-7 1.6699999999999E-7
Output for 5.3.5
2.0099999999999E-7 1.8399999999999E-7
Output for 5.3.4
2.1299999999999E-7 1.9E-7
Output for 5.3.3
2.1399999999999E-7 1.95E-7
Output for 5.3.2
1.8899999999999E-7 2.1700000000002E-7
Output for 5.3.1
1.8199999999996E-7 1.8499999999999E-7
Output for 5.3.0
3.5300000000005E-7 3.4499999999998E-7
Output for 5.2.17
3.84E-7 2.9200000000001E-7
Output for 5.2.16
3.88E-7 3.7400000000004E-7
Output for 5.2.15
3.1799999999993E-7 3.6200000000008E-7
Output for 5.2.14
2.0900000000001E-7 1.7599999999995E-7
Output for 5.2.13
2.0799999999999E-7 2.120000000001E-7
Output for 5.2.12
3.0700000000006E-7 4.0099999999998E-7
Output for 5.2.11
1.8799999999997E-7 1.6999999999989E-7
Output for 5.2.10
2.0100000000001E-7 1.7199999999995E-7
Output for 5.2.9
1.810000000001E-7 2.6000000000004E-7
Output for 5.2.8
3.6400000000003E-7 1.9100000000005E-7
Output for 5.2.7
1.8700000000005E-7 1.7100000000003E-7
Output for 5.2.6
2.080000000001E-7 1.7199999999995E-7
Output for 5.2.5
2.0699999999996E-7 1.8600000000002E-7
Output for 5.2.4
3.7300000000007E-7 2.9500000000005E-7
Output for 5.2.3
2.0699999999996E-7 1.8000000000007E-7
Output for 5.2.2
1.9E-7 1.72E-7
Output for 5.2.1
1.79E-07 1.83E-07
Output for 5.2.0
1.8E-07 1.97E-07
Output for 5.1.6
1.96E-07 1.5800000000002E-07
Output for 5.1.5
1.7200000000001E-07 1.62E-07
Output for 5.1.4
1.7700000000001E-07 1.7799999999998E-07
Output for 5.1.3
1.8499999999999E-07 1.5699999999999E-07
Output for 5.1.2
1.8499999999999E-07 1.5799999999999E-07
Output for 5.1.1
1.6700000000003E-07 1.68E-07
Output for 5.1.0
1.7600000000001E-07 1.8199999999996E-07
Output for 5.0.5
2.8699999999998E-07 2.9899999999999E-07
Output for 5.0.4
2.7199999999999E-07 2.6999999999999E-07
Output for 5.0.3
3.1300000000001E-07 2.6399999999999E-07
Output for 5.0.2
2.7499999999997E-07 2.7700000000003E-07
Output for 5.0.1
2.8499999999998E-07 2.9200000000001E-07
Output for 5.0.0
2.78E-07 2.5500000000001E-07
Output for 4.4.9
2.6599999999999E-07 2.3899999999999E-07
Output for 4.4.8
2.5800000000009E-07 2.4899999999994E-07
Output for 4.4.7
2.8500000000009E-07 2.9999999999997E-07
Output for 4.4.6
2.51E-07 2.9299999999999E-07
Output for 4.4.5
2.5399999999998E-07 2.5200000000003E-07
Output for 4.4.4
2.7200000000005E-07 2.8499999999998E-07
Output for 4.4.3
2.5799999999998E-07 2.5399999999998E-07
Output for 4.4.2
2.6700000000002E-07 2.6500000000007E-07
Output for 4.4.1
2.7299999999997E-07 2.6300000000001E-07
Output for 4.4.0
2.7599999999994E-07 2.6300000000001E-07
Output for 4.3.11
2.7100000000002E-07 2.7100000000002E-07
Output for 4.3.10
2.5700000000006E-07 2.5399999999998E-07
Output for 4.3.9
2.8700000000004E-07 2.4100000000005E-07
Output for 4.3.8
2.8700000000004E-07 2.6400000000004E-07
Output for 4.3.7
2.6199999999998E-07 2.5900000000001E-07
Output for 4.3.6
3.0999999999992E-07 2.78E-07
Output for 4.3.5
2.7900000000003E-07 2.5500000000001E-07
Output for 4.3.4
2.9100000000004E-07 2.47E-07
Output for 4.3.3
3.3399999999995E-07 2.8799999999995E-07
Output for 4.3.2
2.434E-06 2.7199999999999E-06
Output for 4.3.1
2.5E-06 2.774E-06
Output for 4.3.0
1.136E-06 1.478E-06

preferences:
160.54 ms | 401 KiB | 190 Q