3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $lorem = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut congue, turpis fermentum tempus ultricies, tellus purus vulputate ipsum, eu tempus metus ipsum vel felis. Mauris feugiat nibh at sollicitudin ultrices. Vestibulum suscipit libero a nulla vehicula lobortis. Vestibulum sit amet risus adipiscing, pharetra nulla id, ullamcorper lorem. Fusce facilisis consequat turpis. Fusce posuere, dui vel condimentum varius, turpis risus ullamcorper tortor, ac laoreet mi dui at urna. Aenean vitae lacus mauris. Proin aliquam sem pulvinar velit lacinia ultricies. Mauris scelerisque sem libero, at semper ante convallis quis. Mauris in mi quis tortor malesuada consectetur. Donec a purus vehicula, vehicula risus sed, vestibulum nibh. Nam ornare metus ut rhoncus rhoncus. Integer cursus, est a condimentum sollicitudin, ipsum quam tincidunt quam, quis lobortis risus augue nec odio. Vivamus vel est eget augue lacinia pulvinar.'; $words = explode(' ', $lorem); for ($i = 0; $i < 10; $i++) { $words = array_merge($words, $words); } shuffle($words); $startTime = microtime(true); $str = join("\n\r", $words); echo 'Join '.count($words).' words: '.(microtime(true) - $startTime).PHP_EOL; $str = ''; $startTime = microtime(true); foreach ($words as $value) { $str .= $value . "\n\r"; } echo 'Concat '.count($words).' words: '.(microtime(true) - $startTime).PHP_EOL;
Output for 7.1.0
Join 135168 words: 0.0017178058624268 Concat 135168 words: 0.006943941116333
Output for 7.0.14
Join 135168 words: 0.0026769638061523 Concat 135168 words: 0.0099599361419678
Output for 7.0.12
Join 135168 words: 0.0026400089263916 Concat 135168 words: 0.0097582340240479
Output for 7.0.6
Join 135168 words: 0.002910852432251 Concat 135168 words: 0.0086898803710938
Output for 7.0.5
Join 135168 words: 0.0026850700378418 Concat 135168 words: 0.007789134979248
Output for 7.0.4
Join 135168 words: 0.0019960403442383 Concat 135168 words: 0.0062382221221924
Output for 7.0.3
Join 135168 words: 0.0050041675567627 Concat 135168 words: 0.0069000720977783
Output for 7.0.2
Join 135168 words: 0.004767894744873 Concat 135168 words: 0.0093460083007812
Output for 7.0.1
Join 135168 words: 0.0022709369659424 Concat 135168 words: 0.0059101581573486
Output for 7.0.0
Join 135168 words: 0.0030310153961182 Concat 135168 words: 0.0092661380767822
Output for 5.6.28
Join 135168 words: 0.014213085174561 Concat 135168 words: 0.029202938079834
Output for 5.6.21
Join 135168 words: 0.012367010116577 Concat 135168 words: 0.023679971694946
Output for 5.6.20
Join 135168 words: 0.012038230895996 Concat 135168 words: 0.024893999099731
Output for 5.6.19
Join 135168 words: 0.013283014297485 Concat 135168 words: 0.026141881942749
Output for 5.6.18
Join 135168 words: 0.0098848342895508 Concat 135168 words: 0.021771192550659
Output for 5.6.17
Join 135168 words: 0.010903120040894 Concat 135168 words: 0.025636911392212
Output for 5.6.16
Join 135168 words: 0.01131010055542 Concat 135168 words: 0.023553133010864
Output for 5.6.15
Join 135168 words: 0.014357805252075 Concat 135168 words: 0.029217958450317
Output for 5.6.14
Join 135168 words: 0.012866973876953 Concat 135168 words: 0.026060819625854
Output for 5.6.13
Join 135168 words: 0.013720989227295 Concat 135168 words: 0.025675058364868
Output for 5.6.12
Join 135168 words: 0.010907888412476 Concat 135168 words: 0.025815010070801
Output for 5.6.11
Join 135168 words: 0.011477947235107 Concat 135168 words: 0.024126768112183
Output for 5.6.10
Join 135168 words: 0.012094020843506 Concat 135168 words: 0.023864984512329
Output for 5.6.9
Join 135168 words: 0.014612913131714 Concat 135168 words: 0.027282953262329
Output for 5.6.8
Join 135168 words: 0.011835098266602 Concat 135168 words: 0.023880004882812
Output for 5.6.7
Join 135168 words: 0.0091221332550049 Concat 135168 words: 0.016954898834229
Output for 5.5.35
Join 135168 words: 0.009613037109375 Concat 135168 words: 0.021575927734375
Output for 5.5.34
Join 135168 words: 0.01321005821228 Concat 135168 words: 0.029004096984863
Output for 5.5.33
Join 135168 words: 0.013527870178223 Concat 135168 words: 0.02810001373291
Output for 5.5.32
Join 135168 words: 0.011162042617798 Concat 135168 words: 0.025055885314941
Output for 5.5.31
Join 135168 words: 0.011968851089478 Concat 135168 words: 0.024558067321777
Output for 5.5.30
Join 135168 words: 0.013126850128174 Concat 135168 words: 0.025764942169189
Output for 5.5.29
Join 135168 words: 0.014902114868164 Concat 135168 words: 0.027806043624878
Output for 5.5.28
Join 135168 words: 0.015654802322388 Concat 135168 words: 0.02726411819458
Output for 5.5.27
Join 135168 words: 0.01301908493042 Concat 135168 words: 0.025210857391357
Output for 5.5.26
Join 135168 words: 0.011861085891724 Concat 135168 words: 0.023838043212891
Output for 5.5.25
Join 135168 words: 0.012677192687988 Concat 135168 words: 0.025609016418457
Output for 5.5.24
Join 135168 words: 0.011400938034058 Concat 135168 words: 0.022711992263794
Output for 5.4.45
Join 135168 words: 0.01394510269165 Concat 135168 words: 0.026657819747925
Output for 5.4.44
Join 135168 words: 0.015309810638428 Concat 135168 words: 0.030853033065796
Output for 5.4.43
Join 135168 words: 0.012209892272949 Concat 135168 words: 0.026034116744995
Output for 5.4.42
Join 135168 words: 0.01103687286377 Concat 135168 words: 0.024935007095337
Output for 5.4.41
Join 135168 words: 0.013844966888428 Concat 135168 words: 0.027214050292969
Output for 5.4.40
Join 135168 words: 0.012480974197388 Concat 135168 words: 0.026571989059448
Output for 5.4.39
Join 135168 words: 0.014147996902466 Concat 135168 words: 0.027409076690674
Output for 5.4.38
Join 135168 words: 0.013046979904175 Concat 135168 words: 0.028479814529419
Output for 5.4.37
Join 135168 words: 0.014494895935059 Concat 135168 words: 0.027896881103516
Output for 5.4.36
Join 135168 words: 0.014255046844482 Concat 135168 words: 0.028037071228027
Output for 5.4.35
Join 135168 words: 0.014768123626709 Concat 135168 words: 0.028746843338013
Output for 5.4.34
Join 135168 words: 0.01252293586731 Concat 135168 words: 0.026568174362183
Output for 5.4.32
Join 135168 words: 0.013015985488892 Concat 135168 words: 0.026672840118408
Output for 5.4.31
Join 135168 words: 0.013370990753174 Concat 135168 words: 0.027858972549438
Output for 5.4.30
Join 135168 words: 0.014983177185059 Concat 135168 words: 0.027815818786621
Output for 5.4.29
Join 135168 words: 0.014106035232544 Concat 135168 words: 0.030523061752319
Output for 5.4.28
Join 135168 words: 0.012799978256226 Concat 135168 words: 0.029339075088501
Output for 5.4.27
Join 135168 words: 0.017455101013184 Concat 135168 words: 0.029452085494995
Output for 5.4.26
Join 135168 words: 0.014429092407227 Concat 135168 words: 0.028063058853149
Output for 5.4.25
Join 135168 words: 0.012912034988403 Concat 135168 words: 0.029249906539917
Output for 5.4.24
Join 135168 words: 0.015398025512695 Concat 135168 words: 0.031655073165894
Output for 5.4.23
Join 135168 words: 0.013029098510742 Concat 135168 words: 0.027401924133301
Output for 5.4.22
Join 135168 words: 0.015031814575195 Concat 135168 words: 0.029625177383423
Output for 5.4.21
Join 135168 words: 0.013901948928833 Concat 135168 words: 0.028449058532715
Output for 5.4.20
Join 135168 words: 0.013333082199097 Concat 135168 words: 0.028585910797119
Output for 5.4.19
Join 135168 words: 0.014369010925293 Concat 135168 words: 0.027713060379028
Output for 5.4.18
Join 135168 words: 0.013395071029663 Concat 135168 words: 0.027814865112305
Output for 5.4.17
Join 135168 words: 0.014216899871826 Concat 135168 words: 0.028194904327393
Output for 5.4.16
Join 135168 words: 0.015069007873535 Concat 135168 words: 0.027719020843506
Output for 5.4.15
Join 135168 words: 0.012691020965576 Concat 135168 words: 0.026396989822388
Output for 5.4.14
Join 135168 words: 0.013252973556519 Concat 135168 words: 0.027000904083252
Output for 5.4.13
Join 135168 words: 0.012518882751465 Concat 135168 words: 0.025146961212158
Output for 5.4.12
Join 135168 words: 0.012916803359985 Concat 135168 words: 0.028151035308838
Output for 5.4.11
Join 135168 words: 0.014025926589966 Concat 135168 words: 0.028074026107788
Output for 5.4.10
Join 135168 words: 0.015477895736694 Concat 135168 words: 0.02927303314209
Output for 5.4.9
Join 135168 words: 0.013581037521362 Concat 135168 words: 0.027550935745239
Output for 5.4.8
Join 135168 words: 0.012692928314209 Concat 135168 words: 0.026054859161377
Output for 5.4.7
Join 135168 words: 0.013396978378296 Concat 135168 words: 0.027481079101562
Output for 5.4.6
Join 135168 words: 0.014491081237793 Concat 135168 words: 0.027948141098022
Output for 5.4.5
Join 135168 words: 0.013819932937622 Concat 135168 words: 0.03013801574707
Output for 5.4.4
Join 135168 words: 0.01247501373291 Concat 135168 words: 0.02501392364502
Output for 5.4.3
Join 135168 words: 0.0140221118927 Concat 135168 words: 0.030431985855103
Output for 5.4.2
Join 135168 words: 0.012907981872559 Concat 135168 words: 0.026012897491455
Output for 5.4.1
Join 135168 words: 0.014539957046509 Concat 135168 words: 0.027921915054321
Output for 5.4.0
Join 135168 words: 0.015242099761963 Concat 135168 words: 0.028560876846313
Output for 5.3.29
Join 135168 words: 0.013561964035034 Concat 135168 words: 0.027040958404541
Output for 5.3.28
Join 135168 words: 0.013162851333618 Concat 135168 words: 0.026434898376465
Output for 5.3.27
Join 135168 words: 0.014385938644409 Concat 135168 words: 0.027177095413208
Output for 5.3.26
Join 135168 words: 0.013997077941895 Concat 135168 words: 0.026922941207886
Output for 5.3.25
Join 135168 words: 0.012646198272705 Concat 135168 words: 0.028708934783936
Output for 5.3.24
Join 135168 words: 0.011636972427368 Concat 135168 words: 0.024482011795044
Output for 5.3.23
Join 135168 words: 0.011844158172607 Concat 135168 words: 0.025568008422852
Output for 5.3.22
Join 135168 words: 0.011592864990234 Concat 135168 words: 0.023800134658813
Output for 5.3.21
Join 135168 words: 0.011673927307129 Concat 135168 words: 0.029283046722412
Output for 5.3.20
Join 135168 words: 0.013735055923462 Concat 135168 words: 0.03229808807373
Output for 5.3.19
Join 135168 words: 0.011629104614258 Concat 135168 words: 0.026696920394897
Output for 5.3.18
Join 135168 words: 0.013091087341309 Concat 135168 words: 0.026221990585327
Output for 5.3.17
Join 135168 words: 0.012810945510864 Concat 135168 words: 0.026163816452026
Output for 5.3.16
Join 135168 words: 0.013329029083252 Concat 135168 words: 0.027138948440552
Output for 5.3.15
Join 135168 words: 0.012627840042114 Concat 135168 words: 0.025604009628296
Output for 5.3.14
Join 135168 words: 0.012233018875122 Concat 135168 words: 0.025297880172729
Output for 5.3.13
Join 135168 words: 0.014141082763672 Concat 135168 words: 0.027676820755005
Output for 5.3.12
Join 135168 words: 0.013799905776978 Concat 135168 words: 0.028107881546021
Output for 5.3.11
Join 135168 words: 0.012633085250854 Concat 135168 words: 0.02618408203125
Output for 5.3.10
Join 135168 words: 0.014842987060547 Concat 135168 words: 0.027673959732056
Output for 5.3.9
Join 135168 words: 0.012627124786377 Concat 135168 words: 0.025926828384399
Output for 5.3.8
Join 135168 words: 0.014079093933105 Concat 135168 words: 0.02831506729126
Output for 5.3.7
Join 135168 words: 0.012953996658325 Concat 135168 words: 0.024671077728271
Output for 5.3.6
Join 135168 words: 0.012670040130615 Concat 135168 words: 0.025712013244629
Output for 5.3.5
Join 135168 words: 0.013339042663574 Concat 135168 words: 0.025804042816162
Output for 5.3.4
Join 135168 words: 0.015074968338013 Concat 135168 words: 0.027712106704712
Output for 5.3.3
Join 135168 words: 0.011338949203491 Concat 135168 words: 0.024451017379761
Output for 5.3.2
Join 135168 words: 0.013551950454712 Concat 135168 words: 0.031201124191284
Output for 5.3.1
Join 135168 words: 0.013117074966431 Concat 135168 words: 0.027079820632935
Output for 5.3.0
Join 135168 words: 0.014030933380127 Concat 135168 words: 0.025722026824951
Output for 5.2.17
Join 135168 words: 0.01619815826416 Concat 135168 words: 0.033159017562866
Output for 5.2.16
Join 135168 words: 0.014323949813843 Concat 135168 words: 0.030427932739258
Output for 5.2.15
Join 135168 words: 0.013998031616211 Concat 135168 words: 0.02953577041626
Output for 5.2.14
Join 135168 words: 0.012255907058716 Concat 135168 words: 0.027956008911133
Output for 5.2.13
Join 135168 words: 0.01322603225708 Concat 135168 words: 0.028960943222046
Output for 5.2.12
Join 135168 words: 0.015758991241455 Concat 135168 words: 0.033119916915894
Output for 5.2.11
Join 135168 words: 0.014224052429199 Concat 135168 words: 0.028424978256226
Output for 5.2.10
Join 135168 words: 0.014744997024536 Concat 135168 words: 0.032376050949097
Output for 5.2.9
Join 135168 words: 0.013684034347534 Concat 135168 words: 0.029484033584595
Output for 5.2.8
Join 135168 words: 0.013275146484375 Concat 135168 words: 0.031328916549683
Output for 5.2.7
Join 135168 words: 0.014197111129761 Concat 135168 words: 0.029968976974487
Output for 5.2.6
Join 135168 words: 0.013696908950806 Concat 135168 words: 0.028656005859375
Output for 5.2.5
Join 135168 words: 0.01408314704895 Concat 135168 words: 0.031086921691895
Output for 5.2.4
Join 135168 words: 0.018692970275879 Concat 135168 words: 0.038923025131226
Output for 5.2.3
Join 135168 words: 0.013829946517944 Concat 135168 words: 0.030014038085938
Output for 5.2.2
Join 135168 words: 0.013321876525879 Concat 135168 words: 0.030313014984131
Output for 5.2.1
Join 135168 words: 0.014262914657593 Concat 135168 words: 0.030113935470581
Output for 5.2.0
Join 135168 words: 0.015638828277588 Concat 135168 words: 0.027230024337769
Output for 5.1.6
Join 135168 words: 0.029523134231567 Concat 135168 words: 0.027960062026978
Output for 5.1.5
Join 135168 words: 0.02910304069519 Concat 135168 words: 0.027734041213989
Output for 5.1.4
Join 135168 words: 0.028227090835571 Concat 135168 words: 0.027461051940918
Output for 5.1.3
Join 135168 words: 0.02935004234314 Concat 135168 words: 0.028090000152588
Output for 5.1.2
Join 135168 words: 0.027300119400024 Concat 135168 words: 0.027202129364014
Output for 5.1.1
Join 135168 words: 0.02872109413147 Concat 135168 words: 0.027489900588989
Output for 5.1.0
Join 135168 words: 0.029412031173706 Concat 135168 words: 0.027978897094727
Output for 5.0.5
Join 135168 words: 0.02956485748291 Concat 135168 words: 0.054751873016357
Output for 5.0.4
Join 135168 words: 0.027899980545044 Concat 135168 words: 0.052939891815186
Output for 5.0.3
Join 135168 words: 0.028275966644287 Concat 135168 words: 0.052325963973999
Output for 5.0.2
Join 135168 words: 0.028095960617065 Concat 135168 words: 0.052522897720337
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.028738021850586PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.052367210388184PHP_EOL
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.027204036712646PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.052651882171631PHP_EOL
Output for 4.4.9
Join 135168 words: 0.046371 Concat 135168 words: 0.045004
Output for 4.4.8
Join 135168 words: 0.058431 Concat 135168 words: 0.051061
Output for 4.4.7
Join 135168 words: 0.047006 Concat 135168 words: 0.046135
Output for 4.4.6
Join 135168 words: 0.047425 Concat 135168 words: 0.043692
Output for 4.4.5
Join 135168 words: 0.056511 Concat 135168 words: 0.056047
Output for 4.4.4
Join 135168 words: 0.046978 Concat 135168 words: 0.044394
Output for 4.4.3
Join 135168 words: 0.049489 Concat 135168 words: 0.0445
Output for 4.4.2
Join 135168 words: 0.048512 Concat 135168 words: 0.045396
Output for 4.4.1
Join 135168 words: 0.046729 Concat 135168 words: 0.044351
Output for 4.4.0
Join 135168 words: 0.04802 Concat 135168 words: 0.043904
Output for 4.3.11
Join 135168 words: 0.050997 Concat 135168 words: 0.043884
Output for 4.3.10
Join 135168 words: 0.048615 Concat 135168 words: 0.043856
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.046935PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.056115PHP_EOL
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.049077PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.05692PHP_EOL
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.04756PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.057085PHP_EOL
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.048883PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.057447PHP_EOL
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.050127PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.056821PHP_EOL
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.054788PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: -0.937116PHP_EOL
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.042966PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.052964PHP_EOL
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.045029PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.056404PHP_EOL
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.025588PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.053877PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 12 Join 135168 words: 0.025964PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1otmf on line 20 Concat 135168 words: 0.054363PHP_EOL