3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check($w) { $t = strlen($w); if($t < 5 || $w[0] == '-' || $w[$t-1] == '-' || $w[strpos($w, "-") + 1] == '-') return false; return true; } $a = array ("safety", "safet-", "s-a-fe", "-safet", "s7-45", "s--fs"); $t1 = microtime(true); $c = 0; for ($i = 0; $i < 100000; $i ++ ){ foreach ($a as $w) { if (check($w)) $c ++; //echo $w, PHP_EOL; } } $t2 = microtime(true); echo "time without regex: ", $t2 - $t1, " n=" , $c, PHP_EOL; $t1 = microtime(true); $c = 0; for ($i = 0; $i < 100000; $i ++ ){ foreach ($a as $w) { if (preg_match('/^(?=.{5,6}$)[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/', $w)) $c ++; //echo $w, PHP_EOL; } } $t2 = microtime(true); echo "time with regex: ", $t2 - $t1, " n=", $c;
Output for 7.4.1
time without regex: 0.18940901756287 n=300000 time with regex: 0.12600207328796 n=300000
Output for 7.4.0
time without regex: 0.19160389900208 n=300000 time with regex: 0.10912799835205 n=300000
Output for 7.3.13
time without regex: 0.20462417602539 n=300000 time with regex: 0.12558317184448 n=300000
Output for 7.3.12
time without regex: 0.2001941204071 n=300000 time with regex: 0.10444307327271 n=300000
Output for 7.3.11
time without regex: 0.15626192092896 n=300000 time with regex: 0.081037044525146 n=300000
Output for 7.3.10
time without regex: 0.12477588653564 n=300000 time with regex: 0.10959005355835 n=300000
Output for 7.3.9
time without regex: 0.1707239151001 n=300000 time with regex: 0.082649946212769 n=300000
Output for 7.3.8
time without regex: 0.18936800956726 n=300000 time with regex: 0.069519996643066 n=300000
Output for 7.3.7
time without regex: 0.13580179214478 n=300000 time with regex: 0.071574926376343 n=300000
Output for 7.3.6
time without regex: 0.19008803367615 n=300000 time with regex: 0.10736298561096 n=300000
Output for 7.3.5
time without regex: 0.121985912323 n=300000 time with regex: 0.080510854721069 n=300000
Output for 7.3.4
time without regex: 0.12264800071716 n=300000 time with regex: 0.070703983306885 n=300000
Output for 7.3.3
time without regex: 0.13513994216919 n=300000 time with regex: 0.080235958099365 n=300000
Output for 7.3.2
time without regex: 0.13699293136597 n=300000 time with regex: 0.070506811141968 n=300000
Output for 7.3.1
time without regex: 0.12523198127747 n=300000 time with regex: 0.076694011688232 n=300000
Output for 7.3.0
time without regex: 0.12594795227051 n=300000 time with regex: 0.096858978271484 n=300000
Output for 7.2.26
time without regex: 0.21529412269592 n=300000 time with regex: 0.13209009170532 n=300000
Output for 7.2.25
time without regex: 0.2160370349884 n=300000 time with regex: 0.15249013900757 n=300000
Output for 7.2.24
time without regex: 0.15146207809448 n=300000 time with regex: 0.10510206222534 n=300000
Output for 7.2.23
time without regex: 0.15510892868042 n=300000 time with regex: 0.10070300102234 n=300000
Output for 7.2.22
time without regex: 0.17725396156311 n=300000 time with regex: 0.099538087844849 n=300000
Output for 7.2.21
time without regex: 0.18164920806885 n=300000 time with regex: 0.091460943222046 n=300000
Output for 7.2.20
time without regex: 0.15084099769592 n=300000 time with regex: 0.10121297836304 n=300000
Output for 7.2.19
time without regex: 0.20215010643005 n=300000 time with regex: 0.15512990951538 n=300000
Output for 7.2.18
time without regex: 0.15112018585205 n=300000 time with regex: 0.10231781005859 n=300000
Output for 7.2.17
time without regex: 0.13777208328247 n=300000 time with regex: 0.088124990463257 n=300000
Output for 7.2.16
time without regex: 0.20410704612732 n=300000 time with regex: 0.15537905693054 n=300000
Output for 7.2.15
time without regex: 0.14716196060181 n=300000 time with regex: 0.10744214057922 n=300000
Output for 7.2.14
time without regex: 0.20545291900635 n=300000 time with regex: 0.14552092552185 n=300000
Output for 7.2.13
time without regex: 0.18000793457031 n=300000 time with regex: 0.090336084365845 n=300000
Output for 7.2.12
time without regex: 0.1442711353302 n=300000 time with regex: 0.098433971405029 n=300000
Output for 7.2.11
time without regex: 0.13636708259583 n=300000 time with regex: 0.1314640045166 n=300000
Output for 7.2.10
time without regex: 0.14030599594116 n=300000 time with regex: 0.097876071929932 n=300000
Output for 7.2.9
time without regex: 0.17375802993774 n=300000 time with regex: 0.10137701034546 n=300000
Output for 7.2.8
time without regex: 0.20175313949585 n=300000 time with regex: 0.091454982757568 n=300000
Output for 7.2.7
time without regex: 0.13875007629395 n=300000 time with regex: 0.090166807174683 n=300000
Output for 7.2.6
time without regex: 0.20862483978271 n=300000 time with regex: 0.15394592285156 n=300000
Output for 7.2.5
time without regex: 0.14156579971313 n=300000 time with regex: 0.098938941955566 n=300000
Output for 7.2.4
time without regex: 0.16411805152893 n=300000 time with regex: 0.15721702575684 n=300000
Output for 7.2.3
time without regex: 0.13337802886963 n=300000 time with regex: 0.10169315338135 n=300000
Output for 7.2.2
time without regex: 0.15228486061096 n=300000 time with regex: 0.099188089370728 n=300000
Output for 7.2.1
time without regex: 0.20910596847534 n=300000 time with regex: 0.13542604446411 n=300000
Output for 7.2.0
time without regex: 0.20606803894043 n=300000 time with regex: 0.09230899810791 n=300000
Output for 7.1.33
time without regex: 0.25403499603271 n=300000 time with regex: 0.21695899963379 n=300000
Output for 7.1.32
time without regex: 0.29691576957703 n=300000 time with regex: 0.15804100036621 n=300000
Output for 7.1.31
time without regex: 0.30744481086731 n=300000 time with regex: 0.20149302482605 n=300000
Output for 7.1.30
time without regex: 0.27637887001038 n=300000 time with regex: 0.13994598388672 n=300000
Output for 7.1.29
time without regex: 0.24673104286194 n=300000 time with regex: 0.13149809837341 n=300000
Output for 7.1.28
time without regex: 0.32157897949219 n=300000 time with regex: 0.17793202400208 n=300000
Output for 7.1.27
time without regex: 0.24563884735107 n=300000 time with regex: 0.20871305465698 n=300000
Output for 7.1.26
time without regex: 0.30330204963684 n=300000 time with regex: 0.15276384353638 n=300000
Output for 7.1.25
time without regex: 0.33869218826294 n=300000 time with regex: 0.13330101966858 n=300000
Output for 7.1.24
time without regex: 0.34228086471558 n=300000 time with regex: 0.16155791282654 n=300000
Output for 7.1.23
time without regex: 0.24382305145264 n=300000 time with regex: 0.16457796096802 n=300000
Output for 7.1.22
time without regex: 0.26682901382446 n=300000 time with regex: 0.1471688747406 n=300000
Output for 7.1.21
time without regex: 0.29717493057251 n=300000 time with regex: 0.16117191314697 n=300000
Output for 7.1.20
time without regex: 0.24879312515259 n=300000 time with regex: 0.14457297325134 n=300000
Output for 7.1.19
time without regex: 0.28749799728394 n=300000 time with regex: 0.21624183654785 n=300000
Output for 7.1.18
time without regex: 0.34469890594482 n=300000 time with regex: 0.1424400806427 n=300000
Output for 7.1.17
time without regex: 0.24152994155884 n=300000 time with regex: 0.13572096824646 n=300000
Output for 7.1.16
time without regex: 0.31860613822937 n=300000 time with regex: 0.21320605278015 n=300000
Output for 7.1.15
time without regex: 0.30589485168457 n=300000 time with regex: 0.1633288860321 n=300000
Output for 7.1.14
time without regex: 0.26798105239868 n=300000 time with regex: 0.21512413024902 n=300000
Output for 7.1.13
time without regex: 0.33179497718811 n=300000 time with regex: 0.15713000297546 n=300000
Output for 7.1.12
time without regex: 0.29466891288757 n=300000 time with regex: 0.14830708503723 n=300000
Output for 7.1.11
time without regex: 0.34813284873962 n=300000 time with regex: 0.18724608421326 n=300000
Output for 7.1.10
time without regex: 0.34376883506775 n=300000 time with regex: 0.13454103469849 n=300000
Output for 7.1.9
time without regex: 0.26111197471619 n=300000 time with regex: 0.14730596542358 n=300000
Output for 7.1.8
time without regex: 0.26185703277588 n=300000 time with regex: 0.15177798271179 n=300000
Output for 7.1.7
time without regex: 0.30740904808044 n=300000 time with regex: 0.21432614326477 n=300000
Output for 7.1.6
time without regex: 0.33552813529968 n=300000 time with regex: 0.15128397941589 n=300000
Output for 7.1.5
time without regex: 0.26947498321533 n=300000 time with regex: 0.19038510322571 n=300000
Output for 7.1.4
time without regex: 0.33606314659119 n=300000 time with regex: 0.13654589653015 n=300000
Output for 7.1.3
time without regex: 0.26180911064148 n=300000 time with regex: 0.1486349105835 n=300000
Output for 7.1.2
time without regex: 0.29941296577454 n=300000 time with regex: 0.21851420402527 n=300000
Output for 7.1.1
time without regex: 0.2410728931427 n=300000 time with regex: 0.20024394989014 n=300000
Output for 7.1.0
time without regex: 0.23923397064209 n=300000 time with regex: 0.16485095024109 n=300000
Output for 7.0.33
time without regex: 0.34259104728699 n=300000 time with regex: 0.14908814430237 n=300000
Output for 7.0.32
time without regex: 0.34297609329224 n=300000 time with regex: 0.21413278579712 n=300000
Output for 7.0.31
time without regex: 0.26211500167847 n=300000 time with regex: 0.1505069732666 n=300000
Output for 7.0.30
time without regex: 0.30705380439758 n=300000 time with regex: 0.21660494804382 n=300000
Output for 7.0.29
time without regex: 0.31317591667175 n=300000 time with regex: 0.15008091926575 n=300000
Output for 7.0.28
time without regex: 0.34525799751282 n=300000 time with regex: 0.18617677688599 n=300000
Output for 7.0.27
time without regex: 0.26320910453796 n=300000 time with regex: 0.15069198608398 n=300000
Output for 7.0.26
time without regex: 0.33346486091614 n=300000 time with regex: 0.21508598327637 n=300000
Output for 7.0.25
time without regex: 0.2789409160614 n=300000 time with regex: 0.2154700756073 n=300000
Output for 7.0.24
time without regex: 0.2477080821991 n=300000 time with regex: 0.13416600227356 n=300000
Output for 7.0.23
time without regex: 0.258061170578 n=300000 time with regex: 0.1361620426178 n=300000
Output for 7.0.22
time without regex: 0.31247496604919 n=300000 time with regex: 0.1575300693512 n=300000
Output for 7.0.21
time without regex: 0.28278708457947 n=300000 time with regex: 0.16616487503052 n=300000
Output for 7.0.20
time without regex: 0.31661200523376 n=300000 time with regex: 0.13493800163269 n=300000
Output for 7.0.19
time without regex: 0.29678797721863 n=300000 time with regex: 0.19493007659912 n=300000
Output for 7.0.18
time without regex: 0.27740383148193 n=300000 time with regex: 0.19773101806641 n=300000
Output for 7.0.17
time without regex: 0.28543210029602 n=300000 time with regex: 0.21616792678833 n=300000
Output for 7.0.16
time without regex: 0.31984996795654 n=300000 time with regex: 0.13557600975037 n=300000
Output for 7.0.15
time without regex: 0.31094789505005 n=300000 time with regex: 0.1350040435791 n=300000
Output for 7.0.14
time without regex: 0.26643085479736 n=300000 time with regex: 0.14854001998901 n=300000
Output for 7.0.13
time without regex: 0.34591484069824 n=300000 time with regex: 0.1953239440918 n=300000
Output for 7.0.12
time without regex: 0.23731684684753 n=300000 time with regex: 0.21190285682678 n=300000
Output for 7.0.11
time without regex: 0.30575013160706 n=300000 time with regex: 0.13590717315674 n=300000
Output for 7.0.10
time without regex: 0.25586295127869 n=300000 time with regex: 0.21389317512512 n=300000
Output for 7.0.9
time without regex: 0.31575512886047 n=300000 time with regex: 0.13401007652283 n=300000
Output for 7.0.8
time without regex: 0.34005498886108 n=300000 time with regex: 0.19193005561829 n=300000
Output for 7.0.7
time without regex: 0.34508419036865 n=300000 time with regex: 0.21100687980652 n=300000
Output for 7.0.6
time without regex: 0.34046292304993 n=300000 time with regex: 0.14387392997742 n=300000
Output for 7.0.5
time without regex: 0.26249384880066 n=300000 time with regex: 0.15631198883057 n=300000
Output for 7.0.4
time without regex: 0.30481600761414 n=300000 time with regex: 0.14331698417664 n=300000
Output for 7.0.3
time without regex: 0.34482002258301 n=300000 time with regex: 0.21468496322632 n=300000
Output for 7.0.2
time without regex: 0.27622985839844 n=300000 time with regex: 0.15624499320984 n=300000
Output for 7.0.1
time without regex: 0.26449012756348 n=300000 time with regex: 0.14822602272034 n=300000
Output for 7.0.0
time without regex: 0.33876490592957 n=300000 time with regex: 0.21305394172668 n=300000
Output for 5.6.40
time without regex: 0.64219117164612 n=300000 time with regex: 0.75586795806885 n=300000
Output for 5.6.39
time without regex: 0.53011178970337 n=300000 time with regex: 0.58866286277771 n=300000
Output for 5.6.38
time without regex: 0.59657096862793 n=300000 time with regex: 0.65888905525208 n=300000
Output for 5.6.37
time without regex: 0.59638094902039 n=300000 time with regex: 0.61188292503357 n=300000
Output for 5.6.36
time without regex: 0.70736980438232 n=300000 time with regex: 0.70394802093506 n=300000
Output for 5.6.35
time without regex: 0.59663891792297 n=300000 time with regex: 0.6440589427948 n=300000
Output for 5.6.34
time without regex: 0.62123918533325 n=300000 time with regex: 0.60969996452332 n=300000
Output for 5.6.33
time without regex: 0.65392303466797 n=300000 time with regex: 0.58211708068848 n=300000
Output for 5.6.32
time without regex: 0.63801598548889 n=300000 time with regex: 0.763267993927 n=300000
Output for 5.6.31
time without regex: 0.52918004989624 n=300000 time with regex: 0.60554194450378 n=300000
Output for 5.6.30
time without regex: 0.55041599273682 n=300000 time with regex: 0.58507394790649 n=300000
Output for 5.6.29
time without regex: 0.69580101966858 n=300000 time with regex: 0.66993284225464 n=300000
Output for 5.6.28
time without regex: 0.71292686462402 n=300000 time with regex: 0.76740217208862 n=300000
Output for 5.6.27
time without regex: 0.56969118118286 n=300000 time with regex: 0.5939679145813 n=300000
Output for 5.6.26
time without regex: 0.76406693458557 n=300000 time with regex: 0.8115439414978 n=300000
Output for 5.6.25
time without regex: 0.61419105529785 n=300000 time with regex: 0.60280799865723 n=300000
Output for 5.6.24
time without regex: 0.64260101318359 n=300000 time with regex: 0.71801114082336 n=300000
Output for 5.6.23
time without regex: 0.53447794914246 n=300000 time with regex: 0.57761287689209 n=300000
Output for 5.6.22
time without regex: 0.63082504272461 n=300000 time with regex: 0.74492812156677 n=300000
Output for 5.6.21
time without regex: 0.74860692024231 n=300000 time with regex: 0.64638519287109 n=300000
Output for 5.6.20
time without regex: 0.73718404769897 n=300000 time with regex: 0.74721193313599 n=300000
Output for 5.6.19
time without regex: 0.67742300033569 n=300000 time with regex: 0.7329249382019 n=300000
Output for 5.6.18
time without regex: 0.54962706565857 n=300000 time with regex: 0.73620986938477 n=300000
Output for 5.6.17
time without regex: 0.71362280845642 n=300000 time with regex: 0.67127203941345 n=300000
Output for 5.6.16
time without regex: 0.56699800491333 n=300000 time with regex: 0.59465599060059 n=300000
Output for 5.6.15
time without regex: 0.7124969959259 n=300000 time with regex: 0.79098200798035 n=300000
Output for 5.6.14
time without regex: 0.5469069480896 n=300000 time with regex: 0.80177688598633 n=300000
Output for 5.6.13
time without regex: 0.77791786193848 n=300000 time with regex: 0.71184492111206 n=300000
Output for 5.6.12
time without regex: 0.75630402565002 n=300000 time with regex: 0.72303605079651 n=300000
Output for 5.6.11
time without regex: 0.71170997619629 n=300000 time with regex: 0.80620694160461 n=300000
Output for 5.6.10
time without regex: 0.769366979599 n=300000 time with regex: 0.76541590690613 n=300000
Output for 5.6.9
time without regex: 0.62778401374817 n=300000 time with regex: 0.60471892356873 n=300000
Output for 5.6.8
time without regex: 0.59099197387695 n=300000 time with regex: 0.72209596633911 n=300000
Output for 5.6.7
time without regex: 0.6723530292511 n=300000 time with regex: 0.79589104652405 n=300000
Output for 5.6.6
time without regex: 0.68417310714722 n=300000 time with regex: 0.60306906700134 n=300000
Output for 5.6.5
time without regex: 0.70819306373596 n=300000 time with regex: 0.64220905303955 n=300000
Output for 5.6.4
time without regex: 0.68283891677856 n=300000 time with regex: 0.69973301887512 n=300000
Output for 5.6.3
time without regex: 0.72634506225586 n=300000 time with regex: 0.78338718414307 n=300000
Output for 5.6.2
time without regex: 0.75330901145935 n=300000 time with regex: 0.78770208358765 n=300000
Output for 5.6.1
time without regex: 0.52773809432983 n=300000 time with regex: 0.55524206161499 n=300000
Output for 5.6.0
time without regex: 0.71831202507019 n=300000 time with regex: 0.78400206565857 n=300000
Output for 5.5.38
time without regex: 0.77133679389954 n=300000 time with regex: 0.74730706214905 n=300000
Output for 5.5.37
time without regex: 0.61159515380859 n=300000 time with regex: 0.62207698822021 n=300000
Output for 5.5.36
time without regex: 0.54421019554138 n=300000 time with regex: 0.68589997291565 n=300000
Output for 5.5.35
time without regex: 0.58201694488525 n=300000 time with regex: 0.6252498626709 n=300000
Output for 5.5.34
time without regex: 0.74748396873474 n=300000 time with regex: 0.8442280292511 n=300000
Output for 5.5.33
time without regex: 0.77786684036255 n=300000 time with regex: 0.73232507705688 n=300000
Output for 5.5.32
time without regex: 0.62562584877014 n=300000 time with regex: 0.66105794906616 n=300000
Output for 5.5.31
time without regex: 0.56268978118896 n=300000 time with regex: 0.54386281967163 n=300000
Output for 5.5.30
time without regex: 0.70270395278931 n=300000 time with regex: 0.72194910049438 n=300000
Output for 5.5.29
time without regex: 0.76221704483032 n=300000 time with regex: 0.60139608383179 n=300000
Output for 5.5.28
time without regex: 0.78230500221252 n=300000 time with regex: 0.73789811134338 n=300000
Output for 5.5.27
time without regex: 0.71230697631836 n=300000 time with regex: 0.81394195556641 n=300000
Output for 5.5.26
time without regex: 0.77819108963013 n=300000 time with regex: 0.82115197181702 n=300000
Output for 5.5.25
time without regex: 0.78342700004578 n=300000 time with regex: 0.65775513648987 n=300000
Output for 5.5.24
time without regex: 0.59775710105896 n=300000 time with regex: 0.55182099342346 n=300000
Output for 5.5.23
time without regex: 0.69857597351074 n=300000 time with regex: 0.8190450668335 n=300000
Output for 5.5.22
time without regex: 0.69984889030457 n=300000 time with regex: 0.82190799713135 n=300000
Output for 5.5.21
time without regex: 0.78589701652527 n=300000 time with regex: 0.66352701187134 n=300000
Output for 5.5.20
time without regex: 0.5208728313446 n=300000 time with regex: 0.63473892211914 n=300000
Output for 5.5.19
time without regex: 0.57507491111755 n=300000 time with regex: 0.60404300689697 n=300000
Output for 5.5.18
time without regex: 0.69222903251648 n=300000 time with regex: 0.7762930393219 n=300000
Output for 5.5.17
time without regex: 0.71235680580139 n=300000 time with regex: 0.80171918869019 n=300000
Output for 5.5.16
time without regex: 0.72643804550171 n=300000 time with regex: 0.79825091362 n=300000
Output for 5.5.15
time without regex: 0.77680397033691 n=300000 time with regex: 0.67969799041748 n=300000
Output for 5.5.14
time without regex: 0.59949803352356 n=300000 time with regex: 0.74469113349915 n=300000
Output for 5.5.13
time without regex: 0.58056998252869 n=300000 time with regex: 0.60888004302979 n=300000
Output for 5.5.12
time without regex: 0.74341297149658 n=300000 time with regex: 0.63259410858154 n=300000
Output for 5.5.11
time without regex: 0.75600099563599 n=300000 time with regex: 0.76480102539062 n=300000
Output for 5.5.10
time without regex: 0.69362711906433 n=300000 time with regex: 0.58928799629211 n=300000
Output for 5.5.9
time without regex: 0.72460198402405 n=300000 time with regex: 0.79631400108337 n=300000
Output for 5.5.8
time without regex: 0.70652985572815 n=300000 time with regex: 0.80028700828552 n=300000
Output for 5.5.7
time without regex: 0.64020919799805 n=300000 time with regex: 0.60752201080322 n=300000
Output for 5.5.6
time without regex: 0.60813593864441 n=300000 time with regex: 0.72142219543457 n=300000
Output for 5.5.5
time without regex: 0.77432894706726 n=300000 time with regex: 0.61810994148254 n=300000
Output for 5.5.4
time without regex: 0.77473592758179 n=300000 time with regex: 0.62414002418518 n=300000
Output for 5.5.3
time without regex: 0.56832194328308 n=300000 time with regex: 0.78568387031555 n=300000
Output for 5.5.2
time without regex: 0.57728886604309 n=300000 time with regex: 0.58752584457397 n=300000
Output for 5.5.1
time without regex: 0.73382115364075 n=300000 time with regex: 0.79341697692871 n=300000
Output for 5.5.0
time without regex: 0.70593309402466 n=300000 time with regex: 0.59464597702026 n=300000
Output for 5.4.45
time without regex: 0.66698503494263 n=300000 time with regex: 0.82186794281006 n=300000
Output for 5.4.44
time without regex: 0.63932609558105 n=300000 time with regex: 0.62331581115723 n=300000
Output for 5.4.43
time without regex: 0.59614300727844 n=300000 time with regex: 0.60046601295471 n=300000
Output for 5.4.42
time without regex: 0.77995204925537 n=300000 time with regex: 0.79266691207886 n=300000
Output for 5.4.41
time without regex: 0.59573698043823 n=300000 time with regex: 0.77817296981812 n=300000
Output for 5.4.40
time without regex: 0.72384405136108 n=300000 time with regex: 0.61299109458923 n=300000
Output for 5.4.39
time without regex: 0.59082198143005 n=300000 time with regex: 0.59971594810486 n=300000
Output for 5.4.38
time without regex: 0.78073596954346 n=300000 time with regex: 0.72256803512573 n=300000
Output for 5.4.37
time without regex: 0.65022087097168 n=300000 time with regex: 0.79182481765747 n=300000
Output for 5.4.36
time without regex: 0.7433078289032 n=300000 time with regex: 0.80288815498352 n=300000
Output for 5.4.35
time without regex: 0.61233401298523 n=300000 time with regex: 0.5905921459198 n=300000
Output for 5.4.34
time without regex: 0.77610802650452 n=300000 time with regex: 0.58990812301636 n=300000
Output for 5.4.33
time without regex: 0.58339691162109 n=300000 time with regex: 0.60067701339722 n=300000
Output for 5.4.32
time without regex: 0.76678395271301 n=300000 time with regex: 0.7545268535614 n=300000
Output for 5.4.31
time without regex: 0.78745698928833 n=300000 time with regex: 0.74677610397339 n=300000
Output for 5.4.30
time without regex: 0.53419089317322 n=300000 time with regex: 0.54054188728333 n=300000
Output for 5.4.29
time without regex: 0.69835090637207 n=300000 time with regex: 0.68053603172302 n=300000
Output for 5.4.28
time without regex: 0.76629495620728 n=300000 time with regex: 0.80924797058105 n=300000
Output for 5.4.27
time without regex: 0.77803492546082 n=300000 time with regex: 0.71770095825195 n=300000
Output for 5.4.26
time without regex: 0.77031278610229 n=300000 time with regex: 0.74943089485168 n=300000
Output for 5.4.25
time without regex: 0.52390098571777 n=300000 time with regex: 0.58126783370972 n=300000
Output for 5.4.24
time without regex: 0.77283596992493 n=300000 time with regex: 0.78813695907593 n=300000
Output for 5.4.23
time without regex: 0.6120297908783 n=300000 time with regex: 0.56693506240845 n=300000
Output for 5.4.22
time without regex: 0.59379696846008 n=300000 time with regex: 0.61555504798889 n=300000
Output for 5.4.21
time without regex: 0.75166893005371 n=300000 time with regex: 0.7966639995575 n=300000
Output for 5.4.20
time without regex: 0.78082990646362 n=300000 time with regex: 0.65826797485352 n=300000
Output for 5.4.19
time without regex: 0.74364709854126 n=300000 time with regex: 0.80196285247803 n=300000
Output for 5.4.18
time without regex: 0.78478503227234 n=300000 time with regex: 0.75401496887207 n=300000
Output for 5.4.17
time without regex: 0.58249306678772 n=300000 time with regex: 0.61825394630432 n=300000
Output for 5.4.16
time without regex: 0.78654789924622 n=300000 time with regex: 0.69774103164673 n=300000
Output for 5.4.15
time without regex: 0.69002604484558 n=300000 time with regex: 0.79315710067749 n=300000
Output for 5.4.14
time without regex: 0.58421492576599 n=300000 time with regex: 0.60413312911987 n=300000
Output for 5.4.13
time without regex: 0.7837700843811 n=300000 time with regex: 0.74643898010254 n=300000
Output for 5.4.12
time without regex: 0.69521498680115 n=300000 time with regex: 0.79775905609131 n=300000
Output for 5.4.11
time without regex: 0.71487498283386 n=300000 time with regex: 0.78848505020142 n=300000
Output for 5.4.10
time without regex: 0.6201958656311 n=300000 time with regex: 0.78906607627869 n=300000
Output for 5.4.9
time without regex: 0.77660012245178 n=300000 time with regex: 0.75219702720642 n=300000
Output for 5.4.8
time without regex: 0.78321599960327 n=300000 time with regex: 0.68128418922424 n=300000
Output for 5.4.7
time without regex: 0.79138803482056 n=300000 time with regex: 0.68093800544739 n=300000
Output for 5.4.6
time without regex: 0.59260201454163 n=300000 time with regex: 0.61232304573059 n=300000
Output for 5.4.5
time without regex: 0.64162087440491 n=300000 time with regex: 0.67297291755676 n=300000
Output for 5.4.4
time without regex: 0.58497905731201 n=300000 time with regex: 0.52549409866333 n=300000
Output for 5.4.3
time without regex: 0.72550392150879 n=300000 time with regex: 0.55316495895386 n=300000
Output for 5.4.2
time without regex: 0.63526010513306 n=300000 time with regex: 0.52959799766541 n=300000
Output for 5.4.1
time without regex: 0.6298041343689 n=300000 time with regex: 0.52536392211914 n=300000
Output for 5.4.0
time without regex: 0.68548488616943 n=300000 time with regex: 0.59695601463318 n=300000
Output for 5.3.29
time without regex: 0.4222297668457 n=300000 time with regex: 0.34326004981995 n=300000
Output for 5.3.28
time without regex: 0.415687084198 n=300000 time with regex: 0.34967708587646 n=300000
Output for 5.3.27
time without regex: 0.41066408157349 n=300000 time with regex: 0.3614559173584 n=300000
Output for 5.3.26
time without regex: 0.41778302192688 n=300000 time with regex: 0.36081314086914 n=300000
Output for 5.3.25
time without regex: 0.43578791618347 n=300000 time with regex: 0.39818501472473 n=300000
Output for 5.3.24
time without regex: 0.4449770450592 n=300000 time with regex: 0.39393496513367 n=300000
Output for 5.3.23
time without regex: 0.39952802658081 n=300000 time with regex: 0.36113381385803 n=300000
Output for 5.3.22
time without regex: 0.42472386360168 n=300000 time with regex: 0.4245879650116 n=300000
Output for 5.3.21
time without regex: 0.43839502334595 n=300000 time with regex: 0.41654992103577 n=300000
Output for 5.3.20
time without regex: 0.44639015197754 n=300000 time with regex: 0.39894485473633 n=300000
Output for 5.3.19
time without regex: 0.44918489456177 n=300000 time with regex: 0.40775990486145 n=300000
Output for 5.3.18
time without regex: 0.40290284156799 n=300000 time with regex: 0.35677599906921 n=300000
Output for 5.3.17
time without regex: 0.42046189308167 n=300000 time with regex: 0.44080495834351 n=300000
Output for 5.3.16
time without regex: 0.43571996688843 n=300000 time with regex: 0.42263197898865 n=300000
Output for 5.3.15
time without regex: 0.42001605033875 n=300000 time with regex: 0.37560105323792 n=300000
Output for 5.3.14
time without regex: 0.44249510765076 n=300000 time with regex: 0.42845106124878 n=300000
Output for 5.3.13
time without regex: 0.44070196151733 n=300000 time with regex: 0.37759399414062 n=300000
Output for 5.3.12
time without regex: 0.4205219745636 n=300000 time with regex: 0.36322712898254 n=300000
Output for 5.3.11
time without regex: 0.42089605331421 n=300000 time with regex: 0.37076497077942 n=300000
Output for 5.3.10
time without regex: 0.41817688941956 n=300000 time with regex: 0.36798906326294 n=300000
Output for 5.3.9
time without regex: 0.4495370388031 n=300000 time with regex: 0.36541700363159 n=300000
Output for 5.3.8
time without regex: 0.40861105918884 n=300000 time with regex: 0.33839511871338 n=300000
Output for 5.3.7
time without regex: 0.43358397483826 n=300000 time with regex: 0.39420604705811 n=300000
Output for 5.3.6
time without regex: 0.43350887298584 n=300000 time with regex: 0.36204791069031 n=300000
Output for 5.3.5
time without regex: 0.41689300537109 n=300000 time with regex: 0.37922096252441 n=300000
Output for 5.3.4
time without regex: 0.40530896186829 n=300000 time with regex: 0.3601770401001 n=300000
Output for 5.3.3
time without regex: 0.44110488891602 n=300000 time with regex: 0.34979104995728 n=300000
Output for 5.3.2
time without regex: 0.39920902252197 n=300000 time with regex: 0.36995506286621 n=300000
Output for 5.3.1
time without regex: 0.3932888507843 n=300000 time with regex: 0.36571407318115 n=300000
Output for 5.3.0
time without regex: 0.41968011856079 n=300000 time with regex: 0.37977004051208 n=300000
Output for 5.2.17
time without regex: 0.5002920627594 n=300000 time with regex: 0.44174909591675 n=300000
Output for 5.2.16
time without regex: 0.52193307876587 n=300000 time with regex: 0.38279891014099 n=300000
Output for 5.2.15
time without regex: 0.51764416694641 n=300000 time with regex: 0.42761397361755 n=300000
Output for 5.2.14
time without regex: 0.55052185058594 n=300000 time with regex: 0.44281005859375 n=300000
Output for 5.2.13
time without regex: 0.49104189872742 n=300000 time with regex: 0.38361501693726 n=300000
Output for 5.2.12
time without regex: 0.49514818191528 n=300000 time with regex: 0.38032078742981 n=300000
Output for 5.2.11
time without regex: 0.51850509643555 n=300000 time with regex: 0.4326388835907 n=300000
Output for 5.2.10
time without regex: 0.55913209915161 n=300000 time with regex: 0.44434905052185 n=300000
Output for 5.2.9
time without regex: 0.48808312416077 n=300000 time with regex: 0.42646312713623 n=300000
Output for 5.2.8
time without regex: 0.49525380134583 n=300000 time with regex: 0.3674111366272 n=300000
Output for 5.2.7
time without regex: 0.48658394813538 n=300000 time with regex: 0.37953305244446 n=300000
Output for 5.2.6
time without regex: 0.49546003341675 n=300000 time with regex: 0.41002297401428 n=300000
Output for 5.2.5
time without regex: 0.54255986213684 n=300000 time with regex: 0.40520882606506 n=300000
Output for 5.2.4
time without regex: 0.51842212677002 n=300000 time with regex: 0.39688897132874 n=300000
Output for 5.2.3
time without regex: 0.50933694839478 n=300000 time with regex: 0.3901469707489 n=300000
Output for 5.2.2
time without regex: 0.51628088951111 n=300000 time with regex: 0.40990209579468 n=300000
Output for 5.2.1
time without regex: 0.53038501739502 n=300000 time with regex: 0.37293004989624 n=300000
Output for 5.2.0
time without regex: 0.60553193092346 n=300000 time with regex: 0.39829993247986 n=300000
Output for 5.1.6
time without regex: 0.57178282737732 n=300000 time with regex: 0.41626906394958 n=300000
Output for 5.1.5
time without regex: 0.53754496574402 n=300000 time with regex: 0.36681699752808 n=300000
Output for 5.1.4
time without regex: 0.5605640411377 n=300000 time with regex: 0.35952997207642 n=300000
Output for 5.1.3
time without regex: 0.52697205543518 n=300000 time with regex: 0.38502287864685 n=300000
Output for 5.1.2
time without regex: 0.59479308128357 n=300000 time with regex: 0.34682893753052 n=300000
Output for 5.1.1
time without regex: 0.55599784851074 n=300000 time with regex: 0.35654997825623 n=300000
Output for 5.1.0
time without regex: 0.57084393501282 n=300000 time with regex: 0.35300517082214 n=300000
Output for 5.0.5
time without regex: 0.98791813850403 n=300000 time with regex: 0.56770801544189 n=300000
Output for 5.0.4
time without regex: 0.95655202865601 n=300000 time with regex: 0.49562788009644 n=300000
Output for 5.0.3
time without regex: 0.90219688415527 n=300000 time with regex: 0.47799801826477 n=300000
Output for 5.0.2
time without regex: 0.86794686317444 n=300000 time with regex: 0.48481392860413 n=300000
Output for 5.0.1
time without regex: 0.88619494438171 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: 0.46982908248901 n=300000
Output for 5.0.0
time without regex: 1.1101720333099 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: 0.47431111335754 n=300000
Output for 4.4.9
time without regex: -0.139082 n=300000 time with regex: 0.45145 n=300000
Output for 4.4.8
time without regex: 0.831027 n=300000 time with regex: -0.541145 n=300000
Output for 4.4.7
time without regex: -0.148119 n=300000 time with regex: 0.485816 n=300000
Output for 4.4.6
time without regex: -0.115701 n=300000 time with regex: -0.481195 n=300000
Output for 4.4.5
time without regex: 0.843651 n=300000 time with regex: -0.540003 n=300000
Output for 4.4.4
time without regex: -0.119921 n=300000 time with regex: 0.496006 n=300000
Output for 4.4.3
time without regex: -0.163787 n=300000 time with regex: -0.543158 n=300000
Output for 4.4.2
time without regex: -0.185325 n=300000 time with regex: 0.474015 n=300000
Output for 4.4.1
time without regex: -0.185177 n=300000 time with regex: 0.474435 n=300000
Output for 4.4.0
time without regex: -0.147378 n=300000 time with regex: -0.496123 n=300000
Output for 4.3.11
time without regex: -0.166066 n=300000 time with regex: 0.455142 n=300000
Output for 4.3.10
time without regex: -0.171771 n=300000 time with regex: 0.467411 n=300000
Output for 4.3.9
time without regex: -0.095826 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.470829 n=300000
Output for 4.3.8
time without regex: 0.0989 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: 0.517783 n=300000
Output for 4.3.7
time without regex: -0.043641 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.458187 n=300000
Output for 4.3.6
time without regex: 0.17944 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.489763 n=300000
Output for 4.3.5
time without regex: -0.066665 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: 0.534724 n=300000
Output for 4.3.4
time without regex: 0.088874 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.436288 n=300000
Output for 4.3.3
time without regex: 0.026845 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.251248 n=300000
Output for 4.3.2
time without regex: -0.068293 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: 0.511019 n=300000
Output for 4.3.1
time without regex: -0.015822 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.507631 n=300000
Output for 4.3.0
time without regex: 0.43855 n=300000 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BKhD4 on line 27 PHP_EOLtime with regex: -0.318416 n=300000

preferences:
233.24 ms | 401 KiB | 325 Q