3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time1 = microtime(true); for ($i=0; $i<10000; $i++) { $pathName = '/home/local/core/theme/foo//var/foo///bar//foobar/dakfjdsd.dfdjk'; $pathName = preg_replace('/\/+/', '/', $pathName); } $time2 = microtime(true); for ($i=0; $i<10000; $i++) { $pathName = '/home/local/core/theme/foo//var/foo///bar//foobar/dakfjdsd.dfdjk'; $pathName = str_replace('///', '/', $pathName); $pathName = str_replace('//', '/', $pathName); } $time3 = microtime(true); var_dump(($time2-$time1)/1000, ($time3-$time2)/1000);
Output for 7.1.0
float(6.6680908203125E-6) float(4.4291019439697E-6)
Output for 7.0.14
float(9.3560218811035E-6) float(6.181001663208E-6)
Output for 7.0.12
float(5.4490566253662E-6) float(3.7181377410889E-6)
Output for 7.0.6
float(7.1291923522949E-6) float(6.6049098968506E-6)
Output for 7.0.5
float(7.4450969696045E-6) float(7.0478916168213E-6)
Output for 7.0.4
float(8.7161064147949E-6) float(5.2180290222168E-6)
Output for 7.0.3
float(7.3480606079102E-6) float(6.7429542541504E-6)
Output for 7.0.2
float(8.854866027832E-6) float(8.0161094665527E-6)
Output for 7.0.1
float(9.2480182647705E-6) float(8.2290172576904E-6)
Output for 7.0.0
float(9.1969966888428E-6) float(8.2328319549561E-6)
Output for hhvm-3.12.0
float(7.1728229522705E-6) float(3.9851665496826E-6)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
float(2.0539999008179E-5) float(9.5009803771973E-6)
Output for 5.6.21
float(1.6884088516235E-5) float(7.8248977661133E-6)
Output for 5.6.20
float(1.6304969787598E-5) float(7.7102184295654E-6)
Output for 5.6.19
float(1.6499042510986E-5) float(7.6110363006592E-6)
Output for 5.6.18
float(1.4704942703247E-5) float(6.9239139556885E-6)
Output for 5.6.17
float(1.4869928359985E-5) float(7.1289539337158E-6)
Output for 5.6.16
float(1.2157917022705E-5) float(5.7480335235596E-6)
Output for 5.6.15
float(1.634407043457E-5) float(7.735013961792E-6)
Output for 5.6.14
float(1.5476942062378E-5) float(6.5019130706787E-6)
Output for 5.6.13
float(1.325798034668E-5) float(6.2429904937744E-6)
Output for 5.6.12
float(1.7394065856934E-5) float(7.8480243682861E-6)
Output for 5.6.11
float(2.0074129104614E-5) float(7.7319145202637E-6)
Output for 5.6.10
float(1.6757965087891E-5) float(8.0759525299072E-6)
Output for 5.6.9
float(1.39479637146E-5) float(6.8120956420898E-6)
Output for 5.6.8
float(1.223611831665E-5) float(5.8188438415527E-6)
Output for 5.5.35
float(1.5674114227295E-5) float(7.4820518493652E-6)
Output for 5.5.34
float(1.7422914505005E-5) float(7.9169273376465E-6)
Output for 5.5.33
float(1.1734008789063E-5) float(5.71608543396E-6)
Output for 5.5.32
float(1.298999786377E-5) float(7.0250034332275E-6)
Output for 5.5.31
float(1.1089086532593E-5) float(5.9049129486084E-6)
Output for 5.5.30
float(1.1613130569458E-5) float(5.6619644165039E-6)
Output for 5.5.29
float(1.3935089111328E-5) float(6.5951347351074E-6)
Output for 5.5.28
float(1.6749858856201E-5) float(7.8320503234863E-6)
Output for 5.5.27
float(1.1210918426514E-5) float(5.540132522583E-6)
Output for 5.5.26
float(1.6026973724365E-5) float(7.5521469116211E-6)
Output for 5.5.25
float(1.124906539917E-5) float(5.803108215332E-6)
Output for 5.5.24
float(1.5472888946533E-5) float(7.4920654296875E-6)
Output for 5.4.45
float(1.5916109085083E-5) float(7.6649188995361E-6)
Output for 5.4.44
float(1.5483856201172E-5) float(7.606029510498E-6)
Output for 5.4.43
float(1.629900932312E-5) float(8.2859992980957E-6)
Output for 5.4.42
float(1.0516881942749E-5) float(5.5110454559326E-6)
Output for 5.4.41
float(1.6918897628784E-5) float(8.5990428924561E-6)
Output for 5.4.40
float(1.854395866394E-5) float(8.7361335754395E-6)
Output for 5.4.39
float(1.1343955993652E-5) float(5.5580139160156E-6)
Output for 5.4.38
float(1.6677141189575E-5) float(7.5647830963135E-6)
Output for 5.4.37
float(1.7539024353027E-5) float(8.0459117889404E-6)
Output for 5.4.36
float(1.4615058898926E-5) float(7.5318813323975E-6)
Output for 5.4.35
float(1.5054941177368E-5) float(6.9231986999512E-6)
Output for 5.4.34
float(1.5873908996582E-5) float(7.3850154876709E-6)
Output for 5.4.32
float(1.7324209213257E-5) float(7.7898502349854E-6)
Output for 5.4.31
float(1.7606019973755E-5) float(7.6868534088135E-6)
Output for 5.4.30
float(1.7054796218872E-5) float(7.6529979705811E-6)
Output for 5.4.29
float(1.5832901000977E-5) float(7.3540210723877E-6)
Output for 5.4.28
float(1.9218921661377E-5) float(7.0860385894775E-6)
Output for 5.4.27
float(1.7613887786865E-5) float(8.296012878418E-6)
Output for 5.4.26
float(1.2619972229004E-5) float(5.9831142425537E-6)
Output for 5.4.25
float(1.5228986740112E-5) float(7.2460174560547E-6)
Output for 5.4.24
float(1.8306970596313E-5) float(8.1589221954346E-6)
Output for 5.4.23
float(1.7802000045776E-5) float(8.1441402435303E-6)
Output for 5.4.22
float(1.6180038452148E-5) float(7.4388980865479E-6)
Output for 5.4.21
float(1.148796081543E-5) float(5.5620670318604E-6)
Output for 5.4.20
float(1.778507232666E-5) float(8.1419944763184E-6)
Output for 5.4.19
float(1.7420053482056E-5) float(7.9619884490967E-6)
Output for 5.4.18
float(1.75940990448E-5) float(8.685827255249E-6)
Output for 5.4.17
float(1.487398147583E-5) float(7.3459148406982E-6)
Output for 5.4.16
float(1.5955924987793E-5) float(7.4188709259033E-6)
Output for 5.4.15
float(1.3561010360718E-5) float(6.4389705657959E-6)
Output for 5.4.14
float(1.5767812728882E-5) float(5.9380531311035E-6)
Output for 5.4.13
float(1.5298128128052E-5) float(6.9007873535156E-6)
Output for 5.4.12
float(1.7912864685059E-5) float(8.1760883331299E-6)
Output for 5.4.11
float(1.133394241333E-5) float(5.5570602416992E-6)
Output for 5.4.10
float(1.7777919769287E-5) float(8.0969333648682E-6)
Output for 5.4.9
float(1.4472007751465E-5) float(6.702184677124E-6)
Output for 5.4.8
float(1.8338918685913E-5) float(8.2249641418457E-6)
Output for 5.4.7
float(1.5257120132446E-5) float(6.8650245666504E-6)
Output for 5.4.6
float(1.18248462677E-5) float(5.6750774383545E-6)
Output for 5.4.5
float(1.4732122421265E-5) float(6.2079429626465E-6)
Output for 5.4.4
float(1.8399953842163E-5) float(7.4160099029541E-6)
Output for 5.4.3
float(1.7375946044922E-5) float(7.8840255737305E-6)
Output for 5.4.2
float(1.9016981124878E-5) float(8.5849761962891E-6)
Output for 5.4.1
float(1.1893033981323E-5) float(6.2651634216309E-6)
Output for 5.4.0
float(1.7661094665527E-5) float(8.141040802002E-6)
Output for 5.3.29
float(1.4774084091187E-5) float(6.950855255127E-6)
Output for 5.3.28
float(1.8419027328491E-5) float(9.8249912261963E-6)
Output for 5.3.27
float(1.8074989318848E-5) float(9.4940662384033E-6)
Output for 5.3.26
float(1.7874002456665E-5) float(9.1519355773926E-6)
Output for 5.3.25
float(1.2639045715332E-5) float(6.8750381469727E-6)
Output for 5.3.24
float(1.6762018203735E-5) float(8.5499286651611E-6)
Output for 5.3.23
float(1.9564867019653E-5) float(1.0318994522095E-5)
Output for 5.3.22
float(1.7596006393433E-5) float(9.1300010681152E-6)
Output for 5.3.21
float(1.2680053710937E-5) float(6.9839954376221E-6)
Output for 5.3.20
float(1.9368171691895E-5) float(9.8049640655518E-6)
Output for 5.3.19
float(1.9057035446167E-5) float(9.943962097168E-6)
Output for 5.3.18
float(1.6635894775391E-5) float(8.5201263427734E-6)
Output for 5.3.17
float(2.0092010498047E-5) float(1.0331869125366E-5)
Output for 5.3.16
float(1.7815113067627E-5) float(1.1523962020874E-5)
Output for 5.3.15
float(1.8551111221313E-5) float(8.4168910980225E-6)
Output for 5.3.14
float(1.7896890640259E-5) float(9.5441341400146E-6)
Output for 5.3.13
float(1.9055843353271E-5) float(9.3660354614258E-6)
Output for 5.3.12
float(1.9246101379395E-5) float(9.90891456604E-6)
Output for 5.3.11
float(1.6839981079102E-5) float(8.8791847229004E-6)
Output for 5.3.10
float(1.9999980926514E-5) float(9.9320411682129E-6)
Output for 5.3.9
float(2.0040035247803E-5) float(1.0353803634644E-5)
Output for 5.3.8
float(1.4118909835815E-5) float(8.2111358642578E-6)
Output for 5.3.7
float(1.8872976303101E-5) float(9.7260475158691E-6)
Output for 5.3.6
float(1.2284994125366E-5) float(7.1439743041992E-6)
Output for 5.3.5
float(1.4991998672485E-5) float(8.3270072937012E-6)
Output for 5.3.4
float(1.8617868423462E-5) float(1.0165929794312E-5)
Output for 5.3.3
float(1.1984825134277E-5) float(7.0571899414063E-6)
Output for 5.3.2
float(1.2650012969971E-5) float(7.7030658721924E-6)
Output for 5.3.1
float(1.134204864502E-5) float(6.8960189819336E-6)
Output for 5.3.0
float(1.1402130126953E-5) float(6.8750381469727E-6)
Output for 5.2.17
float(1.9860029220581E-5) float(1.0824918746948E-5)
Output for 5.2.16
float(1.9309043884277E-5) float(1.0646104812622E-5)
Output for 5.2.15
float(1.3597011566162E-5) float(7.9481601715088E-6)
Output for 5.2.14
float(2.2130966186523E-5) float(1.1154174804687E-5)
Output for 5.2.13
float(1.1595964431763E-5) float(6.943941116333E-6)
Output for 5.2.12
float(1.4387845993042E-5) float(9.1309547424316E-6)
Output for 5.2.11
float(1.1474847793579E-5) float(6.7870616912842E-6)
Output for 5.2.10
float(1.2868165969849E-5) float(7.6248645782471E-6)
Output for 5.2.9
float(1.2180089950562E-5) float(6.8690776824951E-6)
Output for 5.2.8
float(1.1419057846069E-5) float(7.3890686035156E-6)
Output for 5.2.7
float(1.1116981506348E-5) float(6.8039894104004E-6)
Output for 5.2.6
float(1.0863780975342E-5) float(6.7040920257568E-6)
Output for 5.2.5
float(1.5223979949951E-5) float(8.648157119751E-6)
Output for 5.2.4
float(1.6495943069458E-5) float(9.2489719390869E-6)
Output for 5.2.3
float(1.8712997436523E-5) float(1.0825157165527E-5)
Output for 5.2.2
float(1.1315107345581E-5) float(7.0109367370605E-6)
Output for 5.2.1
float(1.1936902999878E-5) float(6.742000579834E-6)
Output for 5.2.0
float(1.0855913162231E-5) float(6.7760944366455E-6)
Output for 5.1.6
float(1.1656999588013E-5) float(7.2159767150879E-6)
Output for 5.1.5
float(1.1683940887451E-5) float(7.4341297149658E-6)
Output for 5.1.4
float(1.1349201202393E-5) float(7.133960723877E-6)
Output for 5.1.3
float(1.1492013931274E-5) float(7.094144821167E-6)
Output for 5.1.2
float(1.1671781539917E-5) float(7.2281360626221E-6)
Output for 5.1.1
float(1.3189077377319E-5) float(7.7569484710693E-6)
Output for 5.1.0
float(1.093602180481E-5) float(7.1618556976318E-6)
Output for 5.0.5
float(1.9223928451538E-5) float(1.3760089874268E-5)
Output for 5.0.4
float(1.2048006057739E-5) float(9.5911026000977E-6)
Output for 5.0.3
float(1.2296915054321E-5) float(9.1800689697266E-6)
Output for 5.0.2
float(1.2614965438843E-5) float(9.8669528961182E-6)
Output for 5.0.1
float(1.2694835662842E-5) float(9.6120834350586E-6)
Output for 5.0.0
float(1.2426137924194E-5) float(9.3088150024414E-6)
Output for 4.4.9
float(2.6059E-5) float(1.675E-5)
Output for 4.4.8
float(1.5245E-5) float(1.0757E-5)
Output for 4.4.7
float(1.3322E-5) float(9.6499999999999E-6)
Output for 4.4.6
float(2.0417E-5) float(1.3965E-5)
Output for 4.4.5
float(-0.000980172) float(1.196E-5)
Output for 4.4.4
float(1.6334E-5) float(1.1617E-5)
Output for 4.4.3
float(1.3027E-5) float(9.263E-6)
Output for 4.4.2
float(1.3126E-5) float(9.305E-6)
Output for 4.4.1
float(1.4965E-5) float(1.0257E-5)
Output for 4.4.0
float(1.2584E-5) float(9.204E-6)
Output for 4.3.11
float(1.1792E-5) float(9.215E-6)
Output for 4.3.10
float(1.1727E-5) float(9.2380000000001E-6)
Output for 4.3.9
float(2.5106E-5) float(1.7429E-5)
Output for 4.3.8
float(1.1916E-5) float(9.171E-6)
Output for 4.3.7
float(1.2137E-5) float(9.436E-6)
Output for 4.3.6
float(1.1851E-5) float(9.607E-6)
Output for 4.3.5
float(1.5891E-5) float(1.1649E-5)
Output for 4.3.4
float(1.5915E-5) float(1.1739E-5)
Output for 4.3.3
float(1.6979E-5) float(1.0058E-5)
Output for 4.3.2
float(1.1462E-5) float(9.059E-6)
Output for 4.3.1
float(2.2577E-5) float(1.6445E-5)
Output for 4.3.0
float(1.1954E-5) float(9.067E-6)