3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $path1 = 'C:\Winwdows\system32\drivers\etc'; $path2 = '/foo/bar/sub/home'; $t = microtime(); for ($i = 0; $i++; $i < 10000) { strtr($path1, '\\', '/'); strtr($path2, '\\', '/'); } var_dump(microtime() -$t); $t = microtime(); for ($i = 0; $i++; $i < 10000) { str_replace('\\', '/', $path1); str_replace('\\', '/', $path2); } var_dump(microtime() -$t);
based on esSjH
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 float(1.4E-5) Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 float(1.0000000000001E-6)
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 float(8.9999999999999E-6) Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 float(2.0000000000003E-6)
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 float(2.0000000000001E-5) Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 float(2.0000000000003E-6)
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 float(1.7E-5) Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 float(2.000000000002E-6)
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 Notice: A non well formed numeric value encountered in /in/blrd6 on line 13 float(7.0000000000001E-6) Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 Notice: A non well formed numeric value encountered in /in/blrd6 on line 22 float(2.0000000000003E-6)
Output for 7.0.20
float(1.4E-5) float(1.0000000000001E-6)
Output for 7.0.6
float(5.0000000000328E-6) float(1.0000000000288E-6)
Output for 5.5.34, 7.0.5
float(6.000000000006E-6) float(9.9999999997324E-7)
Output for 7.0.4
float(4.000000000004E-6) float(1.000000000001E-6)
Output for 5.5.25, 7.0.3
float(6.000000000006E-6) float(1.0000000000288E-6)
Output for 5.6.15, 7.0.2
float(7.000000000007E-6) float(1.000000000001E-6)
Output for 7.0.1
float(5.9999999999991E-6) float(0)
Output for 7.0.0
float(8.9999999999986E-6) float(2.000000000002E-6)
Output for 5.6.28
float(8.0000000000002E-6) float(2.0000000000003E-6)
Output for 5.6.21
float(9.000000000009E-6) float(2.000000000002E-6)
Output for 5.5.27, 5.6.20
float(9.0000000000368E-6) float(1.0000000000288E-6)
Output for 5.6.19
float(9.0000000000368E-6) float(2.0000000000575E-6)
Output for 5.6.18
float(1.2999999999985E-5) float(9.9999999997324E-7)
Output for 5.5.28, 5.5.35, 5.6.17
float(8.000000000008E-6) float(9.9999999997324E-7)
Output for 5.6.16
float(1.0000000000066E-5) float(1.0000000000288E-6)
Output for 5.6.14
float(1.0000000000001E-5) float(2.0000000000003E-6)
Output for 5.6.13
float(5.9999999999991E-6) float(1.000000000001E-6)
Output for 5.6.12
float(9.0000000000368E-6) float(2.000000000002E-6)
Output for 5.6.11
float(6.9999999999792E-6) float(9.9999999997324E-7)
Output for 5.6.10
float(8.000000000008E-6) float(9.9999999991773E-7)
Output for 5.6.9
float(8.000000000008E-6) float(1.000000000001E-6)
Output for 5.6.8
float(6.9999999999792E-6) float(1.0000000000288E-6)
Output for 5.5.33
float(8.9999999999812E-6) float(9.9999999997324E-7)
Output for 5.5.32
float(1.2000000000012E-5) float(9.9999999991773E-7)
Output for 5.5.31
float(1.0000000000066E-5) float(9.9999999991773E-7)
Output for 5.5.30
float(2.2999999999995E-5) float(1.0000000000288E-6)
Output for 5.5.29
float(8.9999999999812E-6) float(1.0000000000288E-6)
Output for 5.5.26
float(6.9999999999792E-6) float(9.9999999991773E-7)
Output for 5.5.24
float(8.000000000008E-6) float(2.0000000000575E-6)
Output for 5.4.45
float(1.7E-5) float(4.9999999999998E-6)
Output for 5.4.44
float(2.9000000000001E-5) float(1.0999999999997E-5)
Output for 5.4.43
float(2.000000000002E-5) float(5.000000000005E-6)
Output for 5.4.42
float(2.9000000000001E-5) float(3.0000000000308E-6)
Output for 5.4.41
float(1.7999999999962E-5) float(8.000000000008E-6)
Output for 5.4.31, 5.4.40
float(2.1000000000049E-5) float(4.9999999999217E-6)
Output for 5.4.39
float(2.0999999999938E-5) float(2.9999999999752E-6)
Output for 5.4.38
float(2.0E-5) float(5.9999999999999E-6)
Output for 5.4.37
float(2.2999999999995E-5) float(3.000000000003E-6)
Output for 5.4.36
float(1.6999999999989E-5) float(4.000000000004E-6)
Output for 5.2.7, 5.4.1, 5.4.35
float(2.0999999999993E-5) float(4.9999999999772E-6)
Output for 5.4.34
float(3.2000000000032E-5) float(5.9999999999505E-6)
Output for 5.4.32
float(2.1999999999966E-5) float(4.9999999999217E-6)
Output for 5.4.30
float(2.2000000000001E-5) float(3.9999999999971E-6)
Output for 5.4.29
float(1.7000000000017E-5) float(4.000000000004E-6)
Output for 5.4.28
float(2.0999999999993E-5) float(3.0000000000308E-6)
Output for 5.4.27
float(2.1999999999966E-5) float(4.000000000004E-6)
Output for 5.4.26
float(1.8999999999991E-5) float(5.0000000000328E-6)
Output for 5.4.25
float(1.7000000000045E-5) float(5.0000000000328E-6)
Output for 5.4.24
float(2.2999999999995E-5) float(2.0000000000575E-6)
Output for 5.0.3, 5.1.6, 5.4.2, 5.4.14, 5.4.23
float(1.8999999999991E-5) float(2.000000000002E-6)
Output for 5.4.22
float(3.3000000000005E-5) float(4.9999999999772E-6)
Output for 5.4.21
float(1.8000000000018E-5) float(4.000000000004E-6)
Output for 5.4.20
float(2.8000000000028E-5) float(6.9999999999792E-6)
Output for 5.3.9, 5.3.20, 5.4.19
float(1.8999999999991E-5) float(4.000000000004E-6)
Output for 5.4.18
float(1.8000000000074E-5) float(4.000000000004E-6)
Output for 5.4.17
float(2.000000000002E-5) float(6.0000000000615E-6)
Output for 5.4.16
float(2.5999999999998E-5) float(7.000000000007E-6)
Output for 5.4.15
float(1.9999999999992E-5) float(4.000000000004E-6)
Output for 5.4.13
float(1.8000000000018E-5) float(5.0000000000328E-6)
Output for 5.4.12
float(1.8000000000074E-5) float(4.9999999999217E-6)
Output for 5.4.11
float(1.7999999999962E-5) float(5.9999999999505E-6)
Output for 5.4.4, 5.4.10
float(1.7999999999962E-5) float(4.000000000004E-6)
Output for 5.4.9
float(2.4999999999997E-5) float(6.000000000006E-6)
Output for 5.4.8
float(2.1000000000021E-5) float(4.000000000004E-6)
Output for 5.4.7
float(1.8999999999991E-5) float(6.000000000006E-6)
Output for 5.4.6
float(1.7000000000045E-5) float(1.9999999999465E-6)
Output for 5.3.12, 5.4.5
float(2.000000000002E-5) float(4.000000000004E-6)
Output for 5.4.3
float(1.9000000000102E-5) float(5.0000000000328E-6)
Output for 5.4.0
float(2.3999999999968E-5) float(3.0000000000308E-6)
Output for 5.3.29
float(1.5999999999905E-5) float(4.000000000004E-6)
Output for 5.3.1, 5.3.10, 5.3.28
float(2.000000000002E-5) float(5.0000000000328E-6)
Output for 5.3.27
float(1.7000000000045E-5) float(2.9999999999752E-6)
Output for 5.3.26
float(1.5000000000001E-5) float(4.000000000004E-6)
Output for 5.3.25
float(1.5999999999988E-5) float(3.9999999999762E-6)
Output for 5.3.24
float(1.599999999996E-5) float(2.9999999999752E-6)
Output for 5.3.23
float(1.4999999999987E-5) float(3.0000000000308E-6)
Output for 5.3.2, 5.3.22
float(1.7999999999962E-5) float(5.0000000000328E-6)
Output for 5.3.21
float(9.0000000000034E-5) float(4.000000000004E-6)
Output for 5.3.19
float(1.6000000000002E-5) float(4.000000000004E-6)
Output for 5.3.18
float(1.799999999999E-5) float(5.000000000005E-6)
Output for 5.3.17
float(1.7000000000045E-5) float(4.000000000004E-6)
Output for 5.3.16
float(2.1000000000049E-5) float(6.9999999999792E-6)
Output for 5.2.8, 5.2.13, 5.3.15
float(1.6000000000016E-5) float(4.000000000004E-6)
Output for 5.3.14
float(1.6000000000016E-5) float(2.9999999999752E-6)
Output for 5.3.13
float(2.3E-5) float(4.9999999999998E-6)
Output for 5.3.11
float(1.4999999999987E-5) float(2.000000000002E-6)
Output for 5.3.8
float(1.6999999999934E-5) float(2.9999999999752E-6)
Output for 5.3.7
float(1.7999999999962E-5) float(2.9999999999752E-6)
Output for 5.3.6
float(2.0000000000006E-5) float(4.000000000004E-6)
Output for 5.3.5
float(1.599999999996E-5) float(4.000000000004E-6)
Output for 5.3.4
float(2.000000000002E-5) float(6.000000000006E-6)
Output for 5.3.3
float(1.8000000000074E-5) float(2.9999999999752E-6)
Output for 5.3.0
float(2.0999999999938E-5) float(4.9999999999217E-6)
Output for 5.2.17
float(1.5999999999988E-5) float(4.000000000004E-6)
Output for 5.2.16
float(1.9999999999992E-5) float(6.000000000006E-6)
Output for 5.2.15
float(1.8000000000018E-5) float(2.000000000002E-6)
Output for 5.2.14
float(1.6000000000016E-5) float(3.0000000000308E-6)
Output for 5.2.12
float(1.6999999999934E-5) float(5.0000000000328E-6)
Output for 5.2.11
float(2.1000000000049E-5) float(6.0000000000615E-6)
Output for 5.2.10
float(1.8E-5) float(4.0E-6)
Output for 5.2.9
float(1.9999999999992E-5) float(5.9999999999782E-6)
Output for 5.2.6
float(1.3999999999958E-5) float(2.0000000000575E-6)
Output for 5.2.4 - 5.2.5
float(1.4999999999987E-5) float(4.000000000004E-6)
Output for 5.2.3
float(1.2000000000012E-5) float(2.0000000000575E-6)
Output for 5.2.2
float(1.3000000000041E-5) float(4.000000000004E-6)
Output for 5.2.1
float(1.7000000000003E-5) float(5.000000000005E-6)
Output for 5.2.0
float(1.2000000000012E-5) float(3.000000000003E-6)
Output for 5.1.5
float(1.9000000000047E-5) float(3.0000000000308E-6)
Output for 5.1.4
float(1.1999999999956E-5) float(4.000000000004E-6)
Output for 5.1.3
float(1.2000000000012E-5) float(1.9999999999465E-6)
Output for 5.1.2
float(4.9000000000077E-5) float(3.0000000000863E-6)
Output for 5.1.1
float(9.9999999999545E-6) float(2.0000000000575E-6)
Output for 5.1.0
float(1.0000000000066E-5) float(2.9999999999752E-6)
Output for 5.0.5
float(9.9999999999545E-6) float(2.9999999999752E-6)
Output for 5.0.4
float(2.3E-5) float(5.0E-6)
Output for 5.0.1 - 5.0.2
float(1.5000000000015E-5) float(4.000000000004E-6)
Output for 5.0.0
float(1.3000000000041E-5) float(5.0000000000328E-6)
Output for 4.4.9
float(1.0999999999983E-5) float(4.000000000004E-6)
Output for 4.4.8
float(1.1000000000039E-5) float(2.9999999999752E-6)
Output for 4.4.7
float(1.4000000000014E-5) float(4.000000000004E-6)
Output for 4.4.6
float(1.7000000000045E-5) float(2.0000000000575E-6)
Output for 4.4.5
float(1.3999999999958E-5) float(3.0000000000863E-6)
Output for 4.4.4
float(1.2000000000012E-5) float(5.0000000000328E-6)
Output for 4.4.3
float(1.2000000000012E-5) float(4.000000000004E-6)
Output for 4.4.2
float(1.2000000000012E-5) float(2.9999999999752E-6)
Output for 4.4.1
float(9.0000000000368E-6) float(4.000000000004E-6)
Output for 4.4.0
float(1.3999999999958E-5) float(4.000000000004E-6)
Output for 4.3.11
float(1.4E-5) float(2.9999999999995E-6)
Output for 4.3.10
float(1.0999999999997E-5) float(1.9999999999881E-6)
Output for 4.3.9
float(1.8999999999991E-5) float(8.000000000008E-6)
Output for 4.3.4, 4.3.8
float(1.4999999999987E-5) float(6.000000000006E-6)
Output for 4.3.7
float(1.599999999996E-5) float(4.9999999999772E-6)
Output for 4.3.6
float(1.4000000000014E-5) float(2.9999999999752E-6)
Output for 4.3.5
float(1.4000000000014E-5) float(6.9999999999792E-6)
Output for 4.3.3
float(1.6000000000016E-5) float(6.9999999999792E-6)
Output for 4.3.2
float(1.3000000000041E-5) float(5.9999999999505E-6)
Output for 4.3.1
float(1.7999999999962E-5) float(6.9999999999792E-6)
Output for 4.3.0
float(1.0999999999983E-5) float(6.9999999999792E-6)