3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = range(0,10000); $start = microtime(TRUE); md5(serialize($a)); echo "md5(serialize..:" . (microtime(TRUE) - $start) . "\n"; $start = microtime(TRUE); md5(json_encode($a)); echo "md5(json_encode..:" . (microtime(TRUE)-$start) . "\n";
based on 6ZN1G
Output for 7.2.0
md5(serialize..:0.00084686279296875 md5(json_encode..:0.00045990943908691
Output for 7.1.7
md5(serialize..:0.00049304962158203 md5(json_encode..:0.00022792816162109
Output for 7.1.6
md5(serialize..:0.0012550354003906 md5(json_encode..:0.00053501129150391
Output for 7.1.5
md5(serialize..:0.001011848449707 md5(json_encode..:0.00046896934509277
Output for 7.1.0
md5(serialize..:0.00076794624328613 md5(json_encode..:0.00036811828613281
Output for 7.0.20
md5(serialize..:0.00047922134399414 md5(json_encode..:0.00023388862609863
Output for 7.0.9
md5(serialize..:0.00054311752319336 md5(json_encode..:0.00024294853210449
Output for 7.0.8
md5(serialize..:0.00060510635375977 md5(json_encode..:0.00031018257141113
Output for 7.0.7
md5(serialize..:0.00056219100952148 md5(json_encode..:0.00025701522827148
Output for 7.0.6
md5(serialize..:0.00074076652526855 md5(json_encode..:0.00033187866210938
Output for 7.0.5
md5(serialize..:0.00052714347839355 md5(json_encode..:0.00023794174194336
Output for 7.0.4
md5(serialize..:0.00066685676574707 md5(json_encode..:0.00034785270690918
Output for 7.0.3
md5(serialize..:0.00073003768920898 md5(json_encode..:0.00036215782165527
Output for 7.0.2
md5(serialize..:0.00072813034057617 md5(json_encode..:0.0003809928894043
Output for 7.0.1
md5(serialize..:0.00080418586730957 md5(json_encode..:0.00039482116699219
Output for 7.0.0
md5(serialize..:0.00062704086303711 md5(json_encode..:0.00034785270690918
Output for 5.6.24
md5(serialize..:0.0032978057861328 md5(json_encode..:0.00060892105102539
Output for 5.6.23
md5(serialize..:0.0025529861450195 md5(json_encode..:0.0004580020904541
Output for 5.6.22
md5(serialize..:0.003432035446167 md5(json_encode..:0.0006101131439209
Output for 5.6.21
md5(serialize..:0.0036029815673828 md5(json_encode..:0.00064301490783691
Output for 5.6.20
md5(serialize..:0.0028629302978516 md5(json_encode..:0.00040292739868164
Output for 5.6.19
md5(serialize..:0.0022740364074707 md5(json_encode..:0.00040078163146973
Output for 5.6.18
md5(serialize..:0.003108024597168 md5(json_encode..:0.00053787231445312
Output for 5.6.17
md5(serialize..:0.0032691955566406 md5(json_encode..:0.00059199333190918
Output for 5.6.16
md5(serialize..:0.0030779838562012 md5(json_encode..:0.00055885314941406
Output for 5.6.15
md5(serialize..:0.002310037612915 md5(json_encode..:0.00040006637573242
Output for 5.6.14
md5(serialize..:0.0031628608703613 md5(json_encode..:0.00056600570678711
Output for 5.6.13
md5(serialize..:0.0027468204498291 md5(json_encode..:0.00050711631774902
Output for 5.6.12
md5(serialize..:0.0030038356781006 md5(json_encode..:0.00053501129150391
Output for 5.6.11
md5(serialize..:0.0026988983154297 md5(json_encode..:0.00044512748718262
Output for 5.6.10
md5(serialize..:0.0035820007324219 md5(json_encode..:0.00060796737670898
Output for 5.6.9
md5(serialize..:0.0034210681915283 md5(json_encode..:0.0004580020904541
Output for 5.6.8
md5(serialize..:0.0029201507568359 md5(json_encode..:0.00052499771118164
Output for 5.6.7
md5(serialize..:0.002338171005249 md5(json_encode..:0.00041413307189941
Output for 5.6.6
md5(serialize..:0.0034909248352051 md5(json_encode..:0.00064301490783691
Output for 5.6.5
md5(serialize..:0.0034728050231934 md5(json_encode..:0.00063896179199219
Output for 5.6.4
md5(serialize..:0.0029962062835693 md5(json_encode..:0.00052404403686523
Output for 5.6.3
md5(serialize..:0.0032858848571777 md5(json_encode..:0.00065302848815918
Output for 5.6.2
md5(serialize..:0.0033209323883057 md5(json_encode..:0.00059199333190918
Output for 5.6.1
md5(serialize..:0.003230094909668 md5(json_encode..:0.00053906440734863
Output for 5.6.0
md5(serialize..:0.002810001373291 md5(json_encode..:0.00049614906311035
Output for 5.5.38
md5(serialize..:0.0023009777069092 md5(json_encode..:0.00042080879211426
Output for 5.5.37
md5(serialize..:0.0024161338806152 md5(json_encode..:0.0003960132598877
Output for 5.5.36
md5(serialize..:0.0034630298614502 md5(json_encode..:0.00064611434936523
Output for 5.5.35
md5(serialize..:0.0032370090484619 md5(json_encode..:0.00061297416687012
Output for 5.5.34
md5(serialize..:0.0022969245910645 md5(json_encode..:0.00040483474731445
Output for 5.5.33
md5(serialize..:0.0034449100494385 md5(json_encode..:0.00060510635375977
Output for 5.5.32
md5(serialize..:0.0025730133056641 md5(json_encode..:0.00042605400085449
Output for 5.5.31
md5(serialize..:0.0023281574249268 md5(json_encode..:0.00040984153747559
Output for 5.5.30
md5(serialize..:0.0025689601898193 md5(json_encode..:0.00045084953308105
Output for 5.5.29
md5(serialize..:0.0024521350860596 md5(json_encode..:0.00044417381286621
Output for 5.5.28
md5(serialize..:0.0025660991668701 md5(json_encode..:0.00045680999755859
Output for 5.5.27
md5(serialize..:0.0032279491424561 md5(json_encode..:0.00060892105102539
Output for 5.5.26
md5(serialize..:0.0034859180450439 md5(json_encode..:0.0006098747253418
Output for 5.5.25
md5(serialize..:0.0024440288543701 md5(json_encode..:0.00043177604675293
Output for 5.5.24
md5(serialize..:0.0024170875549316 md5(json_encode..:0.00042414665222168
Output for 5.5.23
md5(serialize..:0.0033309459686279 md5(json_encode..:0.00062108039855957
Output for 5.5.22
md5(serialize..:0.0022690296173096 md5(json_encode..:0.00039792060852051
Output for 5.5.21
md5(serialize..:0.0023541450500488 md5(json_encode..:0.00040602684020996
Output for 5.5.20
md5(serialize..:0.0031170845031738 md5(json_encode..:0.00051307678222656
Output for 5.5.19
md5(serialize..:0.003619909286499 md5(json_encode..:0.00067591667175293
Output for 5.5.18
md5(serialize..:0.0034940242767334 md5(json_encode..:0.0006108283996582
Output for 5.5.16
md5(serialize..:0.0034890174865723 md5(json_encode..:0.00060915946960449
Output for 5.5.15
md5(serialize..:0.0030388832092285 md5(json_encode..:0.0005340576171875
Output for 5.5.14
md5(serialize..:0.0037798881530762 md5(json_encode..:0.00066995620727539
Output for 5.5.13
md5(serialize..:0.0028860569000244 md5(json_encode..:0.00052309036254883
Output for 5.5.12
md5(serialize..:0.0023880004882812 md5(json_encode..:0.00042295455932617
Output for 5.5.11
md5(serialize..:0.0036489963531494 md5(json_encode..:0.00063300132751465
Output for 5.5.10
md5(serialize..:0.0030651092529297 md5(json_encode..:0.00054502487182617
Output for 5.5.9
md5(serialize..:0.0037338733673096 md5(json_encode..:0.00058102607727051
Output for 5.5.8
md5(serialize..:0.0030269622802734 md5(json_encode..:0.00047802925109863
Output for 5.5.7
md5(serialize..:0.0036039352416992 md5(json_encode..:0.00063991546630859
Output for 5.5.6
md5(serialize..:0.0034589767456055 md5(json_encode..:0.00066995620727539
Output for 5.5.5
md5(serialize..:0.0031518936157227 md5(json_encode..:0.00054407119750977
Output for 5.5.4
md5(serialize..:0.0033438205718994 md5(json_encode..:0.00053310394287109
Output for 5.5.3
md5(serialize..:0.0036060810089111 md5(json_encode..:0.00060796737670898
Output for 5.5.2
md5(serialize..:0.0036520957946777 md5(json_encode..:0.00057005882263184
Output for 5.5.1
md5(serialize..:0.003032922744751 md5(json_encode..:0.00048303604125977
Output for 5.5.0
md5(serialize..:0.0030090808868408 md5(json_encode..:0.0005650520324707
Output for 5.4.45
md5(serialize..:0.0030138492584229 md5(json_encode..:0.00053191184997559
Output for 5.4.44
md5(serialize..:0.0029041767120361 md5(json_encode..:0.00050592422485352
Output for 5.4.43
md5(serialize..:0.0035958290100098 md5(json_encode..:0.00062203407287598
Output for 5.4.42
md5(serialize..:0.002251148223877 md5(json_encode..:0.00039100646972656
Output for 5.4.41
md5(serialize..:0.0034101009368896 md5(json_encode..:0.00059103965759277
Output for 5.4.40
md5(serialize..:0.0032219886779785 md5(json_encode..:0.00055599212646484
Output for 5.4.39
md5(serialize..:0.0040669441223145 md5(json_encode..:0.0005037784576416
Output for 5.4.38
md5(serialize..:0.003774881362915 md5(json_encode..:0.00063109397888184
Output for 5.4.37
md5(serialize..:0.0034899711608887 md5(json_encode..:0.00059604644775391
Output for 5.4.36
md5(serialize..:0.0041210651397705 md5(json_encode..:0.00062704086303711
Output for 5.4.35
md5(serialize..:0.0033059120178223 md5(json_encode..:0.00057482719421387
Output for 5.4.34
md5(serialize..:0.0031578540802002 md5(json_encode..:0.00062203407287598
Output for 5.4.32
md5(serialize..:0.0034520626068115 md5(json_encode..:0.00062704086303711
Output for 5.4.31
md5(serialize..:0.0035951137542725 md5(json_encode..:0.0006248950958252
Output for 5.4.30
md5(serialize..:0.0032889842987061 md5(json_encode..:0.00057482719421387
Output for 5.4.29
md5(serialize..:0.003410816192627 md5(json_encode..:0.00057697296142578
Output for 5.4.28
md5(serialize..:0.0033190250396729 md5(json_encode..:0.00056791305541992
Output for 5.4.27
md5(serialize..:0.0033080577850342 md5(json_encode..:0.00053691864013672
Output for 5.4.26
md5(serialize..:0.0031418800354004 md5(json_encode..:0.00054502487182617
Output for 5.4.25
md5(serialize..:0.0030431747436523 md5(json_encode..:0.00051784515380859
Output for 5.4.24
md5(serialize..:0.0036599636077881 md5(json_encode..:0.00066995620727539
Output for 5.4.23
md5(serialize..:0.0030519962310791 md5(json_encode..:0.00054097175598145
Output for 5.4.22
md5(serialize..:0.00288987159729 md5(json_encode..:0.00054383277893066
Output for 5.4.21
md5(serialize..:0.0030350685119629 md5(json_encode..:0.00052213668823242
Output for 5.4.20
md5(serialize..:0.0028119087219238 md5(json_encode..:0.00047612190246582
Output for 5.4.19
md5(serialize..:0.0036411285400391 md5(json_encode..:0.0006251335144043
Output for 5.4.18
md5(serialize..:0.0030550956726074 md5(json_encode..:0.00060415267944336
Output for 5.4.17
md5(serialize..:0.003291130065918 md5(json_encode..:0.00056886672973633
Output for 5.4.16
md5(serialize..:0.0036759376525879 md5(json_encode..:0.00066208839416504
Output for 5.4.15
md5(serialize..:0.0028789043426514 md5(json_encode..:0.00049901008605957
Output for 5.4.14
md5(serialize..:0.0036399364471436 md5(json_encode..:0.00063991546630859
Output for 5.4.13
md5(serialize..:0.0037970542907715 md5(json_encode..:0.00066184997558594
Output for 5.4.12
md5(serialize..:0.00242018699646 md5(json_encode..:0.00042104721069336
Output for 5.4.11
md5(serialize..:0.0023579597473145 md5(json_encode..:0.0003969669342041
Output for 5.4.10
md5(serialize..:0.003558874130249 md5(json_encode..:0.00062990188598633
Output for 5.4.9
md5(serialize..:0.0022070407867432 md5(json_encode..:0.00038981437683105
Output for 5.4.8
md5(serialize..:0.0024499893188477 md5(json_encode..:0.00041890144348145
Output for 5.4.7
md5(serialize..:0.0028040409088135 md5(json_encode..:0.0004880428314209
Output for 5.4.6
md5(serialize..:0.0031740665435791 md5(json_encode..:0.00055813789367676
Output for 5.4.5
md5(serialize..:0.0032458305358887 md5(json_encode..:0.00060510635375977
Output for 5.4.4
md5(serialize..:0.0021779537200928 md5(json_encode..:0.00037312507629395
Output for 5.4.3
md5(serialize..:0.0028469562530518 md5(json_encode..:0.00050806999206543
Output for 5.4.2
md5(serialize..:0.0020759105682373 md5(json_encode..:0.00037312507629395
Output for 5.4.1
md5(serialize..:0.0020589828491211 md5(json_encode..:0.00036287307739258
Output for 5.4.0
md5(serialize..:0.0025689601898193 md5(json_encode..:0.00036787986755371