3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v1 = 5; $v2 = '5-4'; $class = 'Concrete5_Controller_Name'; // Let's warm up $i = 0; while(++$i < 100000) { if(0) {} } // Test 'else if' $i = 0; $start = microtime(true); while(++$i < 1000000) { preg_match('/^Concrete5_Model_(.*)/i', $class); preg_match('/^Concrete5_Helper_(.*)/i', $class); preg_match('/^Concrete5_Controller_Block_(.*)/i', $class); } $end = microtime(true); echo "preg_match: ".($end - $start)."\n"; unset($start, $end); // Test 'elseif' $i = 0; $start = microtime(true); while(++$i < 1000000) { stripos($class, 'Concrete5_Model_'); stripos($class, 'Concrete5_Helper_'); stripos($class, 'Concrete5_Controller_Block_'); } $end = microtime(true); echo "stripos: ".($end - $start);
Output for 7.1.0
preg_match: -0.089914083480835 stripos: -0.27038621902466
Output for 7.0.14
preg_match: 0.3123140335083 stripos: 0.15634894371033
Output for 7.0.10
preg_match: 0.28999304771423 stripos: 0.28719615936279
Output for 7.0.9
preg_match: 0.287034034729 stripos: 0.28629112243652
Output for 7.0.8
preg_match: 0.27148509025574 stripos: 0.28374314308167
Output for 7.0.7
preg_match: 0.23889899253845 stripos: 0.23711013793945
Output for 7.0.6
preg_match: 0.27731394767761 stripos: 0.29540085792542
Output for 7.0.5
preg_match: 0.23327612876892 stripos: 0.24739098548889
Output for 7.0.4
preg_match: 0.3532919883728 stripos: 0.2844409942627
Output for 7.0.3
preg_match: 0.29788684844971 stripos: 0.30250096321106
Output for 7.0.2
preg_match: 0.31514596939087 stripos: 0.28662300109863
Output for 7.0.1
preg_match: 0.27988791465759 stripos: 0.27837896347046
Output for 7.0.0
preg_match: 0.29375100135803 stripos: 0.28890919685364
Output for 5.6.28
preg_match: 0.57970190048218 stripos: 0.78869295120239
Output for 5.6.25
preg_match: 0.98205399513245 stripos: 0.51993179321289
Output for 5.6.24
preg_match: 0.82038497924805 stripos: 0.46237707138062
Output for 5.6.23
preg_match: 0.89784502983093 stripos: 0.49266195297241
Output for 5.6.22
preg_match: 0.94520998001099 stripos: 0.47280192375183
Output for 5.6.21
preg_match: 0.93715310096741 stripos: 0.48998308181763
Output for 5.6.20
preg_match: 0.92131781578064 stripos: 0.48498201370239
Output for 5.6.19
preg_match: 0.8285961151123 stripos: 0.48214221000671
Output for 5.6.18
preg_match: 0.92247700691223 stripos: 0.49475502967834
Output for 5.6.17
preg_match: 0.92194890975952 stripos: 0.48750305175781
Output for 5.6.16
preg_match: 0.88831496238708 stripos: 0.54276204109192
Output for 5.6.15
preg_match: 0.92143201828003 stripos: 0.49222707748413
Output for 5.6.14
preg_match: 0.93656301498413 stripos: 0.48542809486389
Output for 5.6.13
preg_match: 0.94648504257202 stripos: 0.47453093528748
Output for 5.6.12
preg_match: 0.91194701194763 stripos: 0.47436094284058
Output for 5.6.11
preg_match: 0.9127790927887 stripos: 0.49001502990723
Output for 5.6.10
preg_match: 0.91614294052124 stripos: 0.49382400512695
Output for 5.6.9
preg_match: 1.0147519111633 stripos: 0.48882293701172
Output for 5.6.8
preg_match: 0.96684122085571 stripos: 0.47317004203796
Output for 5.6.7
preg_match: 0.93799519538879 stripos: 0.47741103172302
Output for 5.6.6
preg_match: 0.94354605674744 stripos: 0.49030184745789
Output for 5.6.5
preg_match: 0.95296907424927 stripos: 0.58307099342346
Output for 5.6.4
preg_match: 0.94776201248169 stripos: 0.4632408618927
Output for 5.6.3
preg_match: 0.82172083854675 stripos: 0.47913384437561
Output for 5.6.2
preg_match: 0.95461297035217 stripos: 0.47320485115051
Output for 5.6.1
preg_match: 0.94734311103821 stripos: 0.47158622741699
Output for 5.6.0
preg_match: 0.82970309257507 stripos: 0.47303700447083
Output for 5.5.38
preg_match: 0.9744119644165 stripos: 0.49455595016479
Output for 5.5.37
preg_match: 0.93875002861023 stripos: 0.48828887939453
Output for 5.5.36
preg_match: 0.97704601287842 stripos: 0.48335289955139
Output for 5.5.35
preg_match: 0.837975025177 stripos: 0.49032306671143
Output for 5.5.34
preg_match: 0.96066904067993 stripos: 0.61172699928284
Output for 5.5.33
preg_match: 0.83264493942261 stripos: 0.49251508712769
Output for 5.5.32
preg_match: 0.9464099407196 stripos: 0.48057413101196
Output for 5.5.31
preg_match: 0.99346899986267 stripos: 0.60115194320679
Output for 5.5.30
preg_match: 0.94429397583008 stripos: 0.50188493728638
Output for 5.5.29
preg_match: 0.98314189910889 stripos: 0.50470900535583
Output for 5.5.28
preg_match: 0.79687094688416 stripos: 0.50385499000549
Output for 5.5.27
preg_match: 0.95690011978149 stripos: 0.49084401130676
Output for 5.5.26
preg_match: 0.97052001953125 stripos: 0.50717997550964
Output for 5.5.25
preg_match: 1.0133562088013 stripos: 0.48698282241821
Output for 5.5.24
preg_match: 0.98054218292236 stripos: 0.56269288063049
Output for 5.5.23
preg_match: 1.0304160118103 stripos: 0.49306607246399
Output for 5.5.22
preg_match: 0.92333102226257 stripos: 0.48408603668213
Output for 5.5.21
preg_match: 0.95345783233643 stripos: 0.49193286895752
Output for 5.5.20
preg_match: 0.98715901374817 stripos: 0.48689103126526
Output for 5.5.19
preg_match: 0.92983198165894 stripos: 0.49650907516479
Output for 5.5.18
preg_match: 0.93265318870544 stripos: 0.47708702087402
Output for 5.5.16
preg_match: 0.94592618942261 stripos: 0.47953009605408
Output for 5.5.15
preg_match: 0.99842691421509 stripos: 0.5149040222168
Output for 5.5.14
preg_match: 0.96567988395691 stripos: 0.49166393280029
Output for 5.5.13
preg_match: 1.0198249816895 stripos: 0.49166512489319
Output for 5.5.12
preg_match: 0.98140811920166 stripos: 0.48595380783081
Output for 5.5.11
preg_match: 0.92028903961182 stripos: 0.48289608955383
Output for 5.5.10
preg_match: 0.92759108543396 stripos: 0.49506711959839
Output for 5.5.9
preg_match: 0.96364212036133 stripos: 0.47157502174377
Output for 5.5.8
preg_match: 0.98289704322815 stripos: 0.48773217201233
Output for 5.5.7
preg_match: 0.95286798477173 stripos: 0.48519515991211
Output for 5.5.6
preg_match: 0.81742882728577 stripos: 0.49591779708862
Output for 5.5.5
preg_match: 0.91047811508179 stripos: 0.48932504653931
Output for 5.5.4
preg_match: 0.90834021568298 stripos: 0.65912508964539
Output for 5.5.3
preg_match: 0.94276595115662 stripos: 0.57932209968567
Output for 5.5.2
preg_match: 0.92609405517578 stripos: 0.4878408908844
Output for 5.5.1
preg_match: 0.7800350189209 stripos: 0.49617290496826
Output for 5.5.0
preg_match: 1.0271110534668 stripos: 0.48579692840576
Output for 5.4.45
preg_match: 0.91207909584045 stripos: 0.4712929725647
Output for 5.4.44
preg_match: 0.73927712440491 stripos: 0.46424388885498
Output for 5.4.43
preg_match: 0.77083897590637 stripos: 0.46343779563904
Output for 5.4.42
preg_match: 0.91450715065002 stripos: 0.46118783950806
Output for 5.4.41
preg_match: 0.76196098327637 stripos: 0.46519494056702
Output for 5.4.40
preg_match: 0.84351491928101 stripos: 0.50017786026001
Output for 5.4.39
preg_match: 0.91628408432007 stripos: 0.46954584121704
Output for 5.4.38
preg_match: 0.83874106407166 stripos: 0.47105407714844
Output for 5.4.37
preg_match: 0.87210607528687 stripos: 0.55990481376648
Output for 5.4.36
preg_match: 0.92412495613098 stripos: 0.48681616783142
Output for 5.4.35
preg_match: 0.73404097557068 stripos: 0.46770787239075
Output for 5.4.34
preg_match: 0.8898389339447 stripos: 0.50588703155518
Output for 5.4.32
preg_match: 0.91285705566406 stripos: 0.47701692581177
Output for 5.4.31
preg_match: 0.94730496406555 stripos: 0.490394115448
Output for 5.4.30
preg_match: 0.91711711883545 stripos: 0.46820497512817
Output for 5.4.29
preg_match: 0.77194499969482 stripos: 0.47338795661926
Output for 5.4.28
preg_match: 0.90901184082031 stripos: 0.5045747756958
Output for 5.4.27
preg_match: 0.83756995201111 stripos: 0.49326491355896
Output for 5.4.26
preg_match: 0.79800295829773 stripos: 0.50545692443848
Output for 5.4.25
preg_match: 0.90501284599304 stripos: 0.46606588363647
Output for 5.4.24
preg_match: 0.89801502227783 stripos: 0.47321796417236
Output for 5.4.23
preg_match: 0.8866081237793 stripos: 0.47041201591492
Output for 5.4.22
preg_match: 0.78261208534241 stripos: 0.46614003181458
Output for 5.4.21
preg_match: 0.72758102416992 stripos: 0.48104810714722
Output for 5.4.20
preg_match: 0.89476490020752 stripos: 0.47248792648315
Output for 5.4.19
preg_match: 0.90506196022034 stripos: 0.48370599746704
Output for 5.4.18
preg_match: 0.90769481658936 stripos: 0.48570990562439
Output for 5.4.17
preg_match: 0.83498883247375 stripos: 0.52702307701111
Output for 5.4.16
preg_match: 0.86656498908997 stripos: 0.4702250957489
Output for 5.4.15
preg_match: 0.77679109573364 stripos: 0.47621989250183
Output for 5.4.14
preg_match: 0.91692709922791 stripos: 0.48190212249756
Output for 5.4.13
preg_match: 0.91714286804199 stripos: 0.59519410133362
Output for 5.4.12
preg_match: 0.93025302886963 stripos: 0.57557487487793
Output for 5.4.11
preg_match: 0.87135887145996 stripos: 0.49015784263611
Output for 5.4.10
preg_match: 0.74211597442627 stripos: 0.47906589508057
Output for 5.4.9
preg_match: 0.90377902984619 stripos: 0.4949631690979
Output for 5.4.8
preg_match: 0.96991491317749 stripos: 0.50209593772888
Output for 5.4.7
preg_match: 0.95844602584839 stripos: 0.48608493804932
Output for 5.4.6
preg_match: 0.97251296043396 stripos: 0.48574709892273
Output for 5.4.5
preg_match: 0.93306493759155 stripos: 0.47972416877747
Output for 5.4.4
preg_match: 0.77637076377869 stripos: 0.4770188331604
Output for 5.4.3
preg_match: 0.89226889610291 stripos: 0.5577540397644
Output for 5.4.2
preg_match: 0.89862704277039 stripos: 0.47213411331177
Output for 5.4.1
preg_match: 0.95430397987366 stripos: 0.50228977203369
Output for 5.4.0
preg_match: 0.92727303504944 stripos: 0.47553896903992
Output for 5.3.29
preg_match: 1.1236100196838 stripos: 0.66078495979309
Output for 5.3.28
preg_match: 1.1344661712646 stripos: 0.66500997543335
Output for 5.3.27
preg_match: 1.135941028595 stripos: 0.66981911659241
Output for 5.3.26
preg_match: 1.1111660003662 stripos: 0.69477009773254
Output for 5.3.25
preg_match: 1.0875968933105 stripos: 0.65419983863831
Output for 5.3.24
preg_match: 1.1690280437469 stripos: 0.66945195198059
Output for 5.3.23
preg_match: 1.1172571182251 stripos: 0.65257883071899
Output for 5.3.22
preg_match: 1.1573870182037 stripos: 0.69456195831299
Output for 5.3.21
preg_match: 1.0895409584045 stripos: 0.67899298667908
Output for 5.3.20
preg_match: 1.1277840137482 stripos: 0.68254613876343
Output for 5.3.19
preg_match: 1.0945420265198 stripos: 0.67269706726074
Output for 5.3.18
preg_match: 1.1376218795776 stripos: 0.74258708953857
Output for 5.3.17
preg_match: 1.1465511322021 stripos: 0.7802619934082
Output for 5.3.16
preg_match: 1.1867887973785 stripos: 0.72136402130127
Output for 5.3.15
preg_match: 1.1342120170593 stripos: 0.79988598823547
Output for 5.3.14
preg_match: 1.0639390945435 stripos: 0.68451380729675
Output for 5.3.13
preg_match: 1.1826200485229 stripos: 0.68239688873291
Output for 5.3.12
preg_match: 1.1445038318634 stripos: 0.68709111213684
Output for 5.3.11
preg_match: 1.2072041034698 stripos: 0.68554782867432
Output for 5.3.10
preg_match: 1.1275579929352 stripos: 0.76138210296631
Output for 5.3.9
preg_match: 1.11310505867 stripos: 0.67779898643494
Output for 5.3.8
preg_match: 1.1211559772491 stripos: 0.66797780990601
Output for 5.3.7
preg_match: 1.1848878860474 stripos: 0.74368286132812
Output for 5.3.6
preg_match: 1.0772409439087 stripos: 0.6801130771637
Output for 5.3.5
preg_match: 1.1231379508972 stripos: 0.67933201789856
Output for 5.3.4
preg_match: 1.1694488525391 stripos: 0.67474007606506
Output for 5.3.3
preg_match: 1.1650669574738 stripos: 0.6859450340271
Output for 5.3.2
preg_match: 1.138167142868 stripos: 0.66820693016052
Output for 5.3.1
preg_match: 1.138454914093 stripos: 0.67940402030945
Output for 5.3.0
preg_match: 1.13334608078 stripos: 0.76848196983337
Output for 5.2.17
preg_match: 1.1391289234161 stripos: 0.68776512145996
Output for 5.2.16
preg_match: 1.1859271526337 stripos: 0.69514894485474
Output for 5.2.15
preg_match: 1.2149038314819 stripos: 0.79757404327393
Output for 5.2.14
preg_match: 1.1696469783783 stripos: 0.68708801269531
Output for 5.2.13
preg_match: 1.3211140632629 stripos: 0.77165699005127
Output for 5.2.12
preg_match: 1.1787009239197 stripos: 0.71629786491394
Output for 5.2.11
preg_match: 1.1295008659363 stripos: 0.69446015357971
Output for 5.2.10
preg_match: 1.1408839225769 stripos: 0.70477890968323
Output for 5.2.9
preg_match: 1.1872651576996 stripos: 0.69750785827637
Output for 5.2.8
preg_match: 1.0701470375061 stripos: 0.68991708755493
Output for 5.2.7
preg_match: 1.1696710586548 stripos: 0.70173192024231
Output for 5.2.6
preg_match: 1.1197559833527 stripos: 0.80219507217407
Output for 5.2.5
preg_match: 1.127534866333 stripos: 0.77671098709106
Output for 5.2.4
preg_match: 1.1492428779602 stripos: 0.68816804885864
Output for 5.2.3
preg_match: 1.1376099586487 stripos: 0.6939959526062
Output for 5.2.2
preg_match: 1.3316211700439 stripos: 0.80280995368958
Output for 5.2.1
preg_match: 1.3313679695129 stripos: 0.75680017471313
Output for 5.2.0
preg_match: 1.1576201915741 stripos: 0.68665409088135
Output for 5.1.6
preg_match: 1.2185869216919 stripos: 0.74137616157532
Output for 5.1.5
preg_match: 1.1261539459229 stripos: 0.75163102149963
Output for 5.1.4
preg_match: 1.15456199646 stripos: 0.68829989433289
Output for 5.1.3
preg_match: 1.1479151248932 stripos: 0.68942499160767
Output for 5.1.2
preg_match: 1.1311039924622 stripos: 0.68275499343872
Output for 5.1.1
preg_match: 1.143235206604 stripos: 0.67059588432312
Output for 5.1.0
preg_match: 1.1553919315338 stripos: 0.68928813934326
Output for 5.0.5
preg_match: 1.3483779430389 stripos: 0.90650701522827
Output for 5.0.4
preg_match: 1.2515478134155 stripos: 0.92910194396973
Output for 5.0.3
preg_match: 1.1561851501465 stripos: 0.9005651473999
Output for 5.0.2
preg_match: 1.1931331157684 stripos: 0.93292689323425
Output for 5.0.1
preg_match: 1.1122879981995 stripos: 0.91758799552917
Output for 5.0.0
preg_match: 1.2289199829102 stripos: 0.90237307548523
Output for 4.4.9
preg_match: 0.199638 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.8
preg_match: 0.335122 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.7
preg_match: 0.285495 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.6
preg_match: 0.316932 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.5
preg_match: 0.352982 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.4
preg_match: 0.323512 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.3
preg_match: 0.287087 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.2
preg_match: 0.307511 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.1
preg_match: 0.341592 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.4.0
preg_match: 0.3135 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.11
preg_match: 0.235135 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.10
preg_match: 0.144989 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.9
preg_match: 0.354842 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.8
preg_match: 0.192495 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.7
preg_match: 0.237662 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.6
preg_match: 0.088354 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.5
preg_match: 0.165438 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.4
preg_match: 0.295333 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.3
preg_match: 0.193278 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.2
preg_match: 0.088865 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Process exited with code 255.
Output for 4.3.1
preg_match: 0.035118 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19
Output for 4.3.0
preg_match: 0.026397 Fatal error: Call to undefined function: stripos() in /in/kng1m on line 19