3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* How many times the code under test should run in each function */ define('LOOP',1000000); function f1() { for($i=0; $i<LOOP; ++$i) { str_replace('_', '-', 'parse-url-without-regular-expression'); } } function f2() { for($i=0; $i<LOOP; ++$i) { preg_replace('/_/', '-', 'parse-url-without-regular-expression'); } } $start = microtime(true); f1(); $stop = microtime(true); $time1 = $stop - $start; $start = microtime(true); f2(); $stop = microtime(true); $time2 = $stop - $start; echo $time1 . "\t"; echo $time2 . "\n";

Abusive script

This script was stopped while abusing our resources

Output for 7.0.5
0.048635959625244 0.11296010017395
Output for 7.0.4
0.055843114852905 0.11603903770447
Output for 7.0.3
0.039015054702759 0.11004900932312
Output for 7.0.2
0.039153099060059 0.10933613777161
Output for 7.0.1
0.053661108016968 0.12073493003845
Output for 7.0.0
0.038915157318115 0.1141140460968
Output for hhvm-3.12.0
0.14913582801819 0.26834893226624
Output for hhvm-3.10.0
0.16182994842529 0.29114198684692
Output for 5.6.20
0.24842500686646 0.43883895874023
Output for 5.6.19
0.2035391330719 0.33908200263977
Output for 5.6.18
0.20031690597534 0.36723399162292
Output for 5.6.17
0.19601106643677 0.33547282218933
Output for 5.6.16
0.19378590583801 0.336669921875
Output for 5.6.15
0.20181584358215 0.3301568031311
Output for 5.6.14
0.20082497596741 0.33468317985535
Output for 5.5.34
0.19871520996094 0.34358096122742
Output for 5.5.33
0.20720314979553 0.33358907699585
Output for 5.5.32
0.17720007896423 0.33202409744263
Output for 5.5.31
0.17523980140686 0.32405495643616
Output for 5.5.30
0.19241690635681 0.33710289001465
Output for 5.4.45
0.3299388885498 0.49652314186096
Output for 5.4.44
0.30092191696167 0.50361084938049
Output for 5.4.43
0.30132007598877 0.52239990234375
Output for 5.4.42
0.29884719848633 0.53814196586609
Output for 5.4.41
0.35508799552917 0.61334919929504
Output for 5.4.40
0.32845902442932 0.60760092735291
Output for 5.4.39
0.33452701568604 0.54175090789795
Output for 5.4.38
0.35019493103027 0.60038614273071
Output for 5.4.37
0.29153800010681 0.52804493904114
Output for 5.4.36
0.29088807106018 0.55063509941101
Output for 5.4.35
0.28425097465515 0.40328884124756
Output for 5.4.34
0.24455809593201 0.4318540096283
Output for 5.4.32
0.2161500453949 0.40628600120544
Output for 5.4.31
0.23353886604309 0.41506814956665
Output for 5.4.30
0.24203991889954 0.42225193977356
Output for 5.4.29
0.23110580444336 0.40050601959229
Output for 5.4.28
0.22441911697388 0.38846397399902
Output for 5.4.27
0.22727799415588 0.38550806045532
Output for 5.4.26
0.22778415679932 0.39007210731506
Output for 5.4.25
0.22513008117676 0.38433194160461
Output for 5.4.24
0.22681188583374 0.42429494857788
Output for 5.4.23
0.23294901847839 0.41002011299133
Output for 5.4.22
0.22422790527344 0.39558100700378
Output for 5.4.21
0.22540593147278 0.37967705726624
Output for 5.4.20
0.22058200836182 0.48826909065247
Output for 5.4.19
0.2355101108551 0.40560483932495
Output for 5.4.18
0.22878193855286 0.40156698226929
Output for 5.4.17
0.23545098304749 0.43484902381897
Output for 5.4.16
0.29290509223938 0.46223592758179
Output for 5.4.15
0.22238492965698 0.41987109184265
Output for 5.4.14
0.22132706642151 0.38466382026672
Output for 5.4.13
0.23308706283569 0.47151708602905
Output for 5.4.12
0.26413178443909 0.44610500335693
Output for 5.4.11
0.24684691429138 0.44163799285889
Output for 5.4.10
0.27027702331543 0.45937705039978
Output for 5.4.9
0.25853610038757 0.55258989334106
Output for 5.4.8
0.27657294273376 0.41325306892395
Output for 5.4.7
0.2485339641571 0.45769906044006
Output for 5.4.6
0.25839686393738 0.44768095016479
Output for 5.4.5
0.26409196853638 0.44573712348938
Output for 5.4.4
0.28164792060852 0.44386506080627
Output for 5.4.3
0.27708506584167 0.4247100353241
Output for 5.4.2
0.24988603591919 0.43964886665344
Output for 5.4.1
0.27436685562134 0.44759202003479
Output for 5.4.0
0.24960899353027 0.44773602485657
Output for 5.3.29
0.27530908584595 0.54904699325562
Output for 5.3.28
0.28126001358032 0.52938222885132
Output for 5.3.27
0.27505087852478 0.54062604904175
Output for 5.3.26
0.27683901786804 0.53509497642517
Output for 5.3.25
0.29521322250366 0.51571798324585
Output for 5.3.24
0.28450012207031 0.46739506721497
Output for 5.3.23
0.27702498435974 0.47804999351501
Output for 5.3.22
0.30448913574219 0.48908495903015
Output for 5.3.21
0.3197660446167 0.55840015411377
Output for 5.3.20
0.37865996360779 0.46624398231506
Output for 5.3.19
0.30792713165283 0.54146289825439
Output for 5.3.18
0.37176418304443 0.6072142124176
Output for 5.3.17
0.33954310417175 0.52057194709778
Output for 5.3.16
0.31345701217651 0.53578996658325
Output for 5.3.15
0.29982781410217 0.5038800239563
Output for 5.3.14
0.3083188533783 0.53414797782898
Output for 5.3.13
0.32235383987427 0.62893104553223
Output for 5.3.12
0.34788203239441 0.62471914291382
Output for 5.3.11
0.32237696647644 0.48116898536682
Output for 5.3.10
0.33482503890991 0.56346201896667
Output for 5.3.9
0.29630303382874 0.51451110839844
Output for 5.3.8
0.29531288146973 0.47127795219421
Output for 5.3.7
0.29984402656555 0.51136612892151
Output for 5.3.6
0.32515001296997 0.58640313148499
Output for 5.3.5
0.34223985671997 0.53605794906616
Output for 5.3.4
0.32793307304382 0.51997303962708
Output for 5.3.3
0.29361796379089 0.53257894515991
Output for 5.3.2
0.29888892173767 0.50715398788452
Output for 5.3.1
0.31186485290527 0.54366493225098
Output for 5.3.0
0.2924530506134 0.51718688011169