3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '{"total":8,"data":[{"reference":"539b5a9e-1be8-4dba-9498-76480a010ccd","name":"Women","slug":"women","is_deleted":false,"display_order":0,"quantity":1,"subcategories":[{"reference":"539b5b21-f488-429d-bd51-75840a010ccd","name":"Tops","slug":"tops","is_deleted":false,"display_order":0,"quantity":1,"subcategories":[]},{"reference":"539b6152-f578-4f95-aa77-06fc0a010abd","name":"Bottoms","slug":"bottoms","is_deleted":false,"display_order":1,"quantity":1,"subcategories":[]},{"reference":"539b6163-d594-4a5c-812b-05710a010abd","name":"Jackets and Hoodies","slug":"jackets-and-hoodies","is_deleted":false,"display_order":2,"quantity":1,"subcategories":[]}]},{"reference":"539b5ae6-6824-45e0-a461-76680a010ccd","name":"Men","slug":"men","is_deleted":false,"display_order":1,"quantity":1,"subcategories":[{"reference":"539b618b-b6c0-4af9-b16a-05710a010abd","name":"Tops","slug":"tops","is_deleted":false,"display_order":0,"quantity":1,"subcategories":[]},{"reference":"539b618e-5478-44c9-947b-05710a010abd","name":"Bottoms","slug":"bottoms","is_deleted":false,"display_order":1,"quantity":1,"subcategories":[]}]},{"reference":"539b6192-9518-4219-ba5f-05710a010abd","name":"Swimwear","slug":"swimwear","is_deleted":false,"display_order":2,"quantity":1,"subcategories":[]},{"reference":"539b62cd-46b8-4927-af91-75840a010ccd","name":"Accessories","slug":"accessories","is_deleted":false,"display_order":3,"quantity":1,"subcategories":[]},{"reference":"539b631c-c9f8-4a43-b7f5-6fba0a010ccd","name":"Shoes","slug":"shoes","is_deleted":false,"display_order":4,"quantity":1,"subcategories":[]},{"reference":"539b636b-b1b4-4af2-9ca1-79240a010ccd","name":"Train at Home & DVDs","slug":"train-at-home-dvds","is_deleted":false,"display_order":5,"quantity":1,"subcategories":[]},{"reference":"539b6376-70c0-439f-b28d-79260a010ccd","name":"Gift Cards","slug":"gift-cards","is_deleted":false,"display_order":6,"quantity":1,"subcategories":[]},{"reference":"539b6381-bb40-4101-a59b-79220a010ccd","name":"Sale","slug":"sale","is_deleted":false,"display_order":7,"quantity":1,"subcategories":[]}]}'; function bench($data, $method) { $m = microtime(true); for ($i = 0; $i < 10000; $i++) { $method($data); } echo $method, " ", microtime(true) - $m, "<br>"; } bench($data, 'crc32'); bench($data, 'md5'); bench($data, 'sha1');
Output for 7.1.0
crc32 0.08092188835144<br>md5 0.04218602180481<br>sha1 0.060074090957642<br>
Output for 7.0.14
crc32 0.078902959823608<br>md5 0.039476156234741<br>sha1 0.055356025695801<br>
Output for 7.0.6
crc32 0.066390037536621<br>md5 0.037527084350586<br>sha1 0.046737909317017<br>
Output for 7.0.5
crc32 0.064656019210815<br>md5 0.037115097045898<br>sha1 0.046676874160767<br>
Output for 7.0.4
crc32 0.066826105117798<br>md5 0.037813901901245<br>sha1 0.04631495475769<br>
Output for 7.0.3
crc32 0.051100015640259<br>md5 0.034768104553223<br>sha1 0.046406030654907<br>
Output for 7.0.2
crc32 0.065907001495361<br>md5 0.038132905960083<br>sha1 0.047032117843628<br>
Output for 7.0.1
crc32 0.069356918334961<br>md5 0.03934907913208<br>sha1 0.046925067901611<br>
Output for 7.0.0
crc32 0.069110870361328<br>md5 0.035394906997681<br>sha1 0.046365976333618<br>
Output for hhvm-3.12.0
crc32 0.05237889289856<br>md5 0.038532972335815<br>sha1 0.045615196228027<br>
Output for hhvm-3.10.0
crc32 0.052842140197754<br>md5 0.039893865585327<br>sha1 0.049221992492676<br>
Output for 5.6.28
crc32 0.063356876373291<br>md5 -0.043027877807617<br>sha1 -0.060861825942993<br>
Output for 5.6.21
crc32 0.061386823654175<br>md5 0.035913944244385<br>sha1 0.048586845397949<br>
Output for 5.6.20
crc32 0.051751852035522<br>md5 0.035826921463013<br>sha1 0.047991037368774<br>
Output for 5.6.19
crc32 0.059113025665283<br>md5 0.035961866378784<br>sha1 0.04700779914856<br>
Output for 5.6.18
crc32 0.05157995223999<br>md5 0.035278081893921<br>sha1 0.047134876251221<br>
Output for 5.6.17
crc32 0.052990913391113<br>md5 0.03590989112854<br>sha1 0.047757148742676<br>
Output for 5.6.16
crc32 0.05174994468689<br>md5 0.035891056060791<br>sha1 0.04845404624939<br>
Output for 5.6.15
crc32 0.071177959442139<br>md5 0.040595054626465<br>sha1 0.048336029052734<br>
Output for 5.6.14
crc32 0.069853067398071<br>md5 0.039688110351562<br>sha1 0.047931909561157<br>
Output for 5.6.13
crc32 0.05016303062439<br>md5 0.03479790687561<br>sha1 0.046445846557617<br>
Output for 5.6.12
crc32 0.060690879821777<br>md5 0.036274194717407<br>sha1 0.047574996948242<br>
Output for 5.6.11
crc32 0.069074153900146<br>md5 0.039317846298218<br>sha1 0.048047065734863<br>
Output for 5.6.10
crc32 0.064084053039551<br>md5 0.037370204925537<br>sha1 0.050570011138916<br>
Output for 5.6.9
crc32 0.058629035949707<br>md5 0.037005186080933<br>sha1 0.05757999420166<br>
Output for 5.6.8
crc32 0.06563401222229<br>md5 0.03813099861145<br>sha1 0.058343887329102<br>
Output for 5.6.7
crc32 0.051470041275024<br>md5 0.035771131515503<br>sha1 0.047949075698853<br>
Output for 5.5.35
crc32 0.05839204788208<br>md5 0.03582501411438<br>sha1 0.047749996185303<br>
Output for 5.5.34
crc32 0.071582794189453<br>md5 0.04035496711731<br>sha1 0.048517227172852<br>
Output for 5.5.33
crc32 0.068776845932007<br>md5 0.038157939910889<br>sha1 0.047541856765747<br>
Output for 5.5.32
crc32 0.05166220664978<br>md5 0.035928010940552<br>sha1 0.048101902008057<br>
Output for 5.5.31
crc32 0.06737208366394<br>md5 0.039491891860962<br>sha1 0.047975063323975<br>
Output for 5.5.30
crc32 0.051834106445312<br>md5 0.035983085632324<br>sha1 0.047966003417969<br>
Output for 5.5.29
crc32 0.051570892333984<br>md5 0.034823894500732<br>sha1 0.048765897750854<br>
Output for 5.5.28
crc32 0.051944017410278<br>md5 0.035897016525269<br>sha1 0.047979116439819<br>
Output for 5.5.27
crc32 0.052582979202271<br>md5 0.035978078842163<br>sha1 0.047922134399414<br>
Output for 5.5.26
crc32 0.060494899749756<br>md5 0.036057949066162<br>sha1 0.047605991363525<br>
Output for 5.5.25
crc32 0.051879167556763<br>md5 0.035988092422485<br>sha1 0.050603866577148<br>
Output for 5.5.24
crc32 0.061300992965698<br>md5 0.036617040634155<br>sha1 0.048626184463501<br>
Output for 5.4.45
crc32 0.096752882003784<br>md5 0.072172164916992<br>sha1 0.07103705406189<br>
Output for 5.4.44
crc32 0.044425964355469<br>md5 0.030019044876099<br>sha1 0.065918922424316<br>
Output for 5.4.43
crc32 0.045577049255371<br>md5 0.031050205230713<br>sha1 0.065192222595215<br>
Output for 5.4.42
crc32 0.092992782592773<br>md5 0.033330917358398<br>sha1 0.059775114059448<br>
Output for 5.4.41
crc32 0.047008991241455<br>md5 0.031934022903442<br>sha1 0.063627004623413<br>
Output for 5.4.40
crc32 0.044303894042969<br>md5 0.031666040420532<br>sha1 0.062891006469727<br>
Output for 5.4.39
crc32 0.071599006652832<br>md5 0.091211080551147<br>sha1 0.075989961624146<br>
Output for 5.4.38
crc32 0.085642099380493<br>md5 0.048488855361938<br>sha1 0.068732976913452<br>
Output for 5.4.37
crc32 0.068451166152954<br>md5 0.049232006072998<br>sha1 0.072750091552734<br>
Output for 5.4.36
crc32 0.094143152236938<br>md5 0.052695989608765<br>sha1 0.076678991317749<br>
Output for 5.4.35
crc32 0.072711944580078<br>md5 0.048599004745483<br>sha1 0.071117162704468<br>
Output for 5.4.34
crc32 0.080397129058838<br>md5 0.050078868865967<br>sha1 0.076310873031616<br>
Output for 5.4.32
crc32 0.052011966705322<br>md5 0.035159826278687<br>sha1 0.049340009689331<br>
Output for 5.4.31
crc32 0.050623893737793<br>md5 0.035605907440186<br>sha1 0.050477981567383<br>
Output for 5.4.30
crc32 0.051345109939575<br>md5 0.035948038101196<br>sha1 0.050047874450684<br>
Output for 5.4.29
crc32 0.051238059997559<br>md5 0.036113023757935<br>sha1 0.05042290687561<br>
Output for 5.4.28
crc32 0.051344871520996<br>md5 0.035678863525391<br>sha1 0.0642249584198<br>
Output for 5.4.27
crc32 0.050964832305908<br>md5 0.035724878311157<br>sha1 0.063936948776245<br>
Output for 5.4.26
crc32 0.052146911621094<br>md5 0.03597092628479<br>sha1 0.064934968948364<br>
Output for 5.4.25
crc32 0.052417993545532<br>md5 0.036327838897705<br>sha1 0.067015886306763<br>
Output for 5.4.24
crc32 0.051059007644653<br>md5 0.035725831985474<br>sha1 0.064228057861328<br>
Output for 5.4.23
crc32 0.051790952682495<br>md5 0.036128997802734<br>sha1 0.064778804779053<br>
Output for 5.4.22
crc32 0.051569938659668<br>md5 0.03573203086853<br>sha1 0.06328296661377<br>
Output for 5.4.21
crc32 0.051383018493652<br>md5 0.035233974456787<br>sha1 0.06306004524231<br>
Output for 5.4.20
crc32 0.050722122192383<br>md5 0.03532886505127<br>sha1 0.063524007797241<br>
Output for 5.4.19
crc32 0.050301074981689<br>md5 0.035184144973755<br>sha1 0.063726186752319<br>
Output for 5.4.18
crc32 0.050903081893921<br>md5 0.040000915527344<br>sha1 0.063094854354858<br>
Output for 5.4.17
crc32 0.051111936569214<br>md5 0.03613805770874<br>sha1 0.064018964767456<br>
Output for 5.4.16
crc32 0.051213979721069<br>md5 0.03681206703186<br>sha1 0.065630912780762<br>
Output for 5.4.15
crc32 0.052526950836182<br>md5 0.036760091781616<br>sha1 0.069387912750244<br>
Output for 5.4.14
crc32 0.052152872085571<br>md5 0.037098169326782<br>sha1 0.073412179946899<br>
Output for 5.4.13
crc32 0.052544832229614<br>md5 0.037045955657959<br>sha1 0.071272134780884<br>
Output for 5.4.12
crc32 0.053246021270752<br>md5 0.036643028259277<br>sha1 0.076674938201904<br>
Output for 5.4.11
crc32 0.051781177520752<br>md5 0.036897897720337<br>sha1 0.053867101669312<br>
Output for 5.4.10
crc32 0.053008079528809<br>md5 0.036532878875732<br>sha1 0.055538892745972<br>
Output for 5.4.9
crc32 0.052568912506104<br>md5 0.037819862365723<br>sha1 0.053552150726318<br>
Output for 5.4.8
crc32 0.05254602432251<br>md5 0.03669285774231<br>sha1 0.052325963973999<br>
Output for 5.4.7
crc32 0.051754951477051<br>md5 0.036957025527954<br>sha1 0.052762985229492<br>
Output for 5.4.6
crc32 0.052140951156616<br>md5 0.038072109222412<br>sha1 0.053510189056396<br>
Output for 5.4.5
crc32 0.051267862319946<br>md5 0.040125846862793<br>sha1 0.058830976486206<br>
Output for 5.4.4
crc32 0.052357912063599<br>md5 0.036692142486572<br>sha1 0.052568197250366<br>
Output for 5.4.3
crc32 0.052052974700928<br>md5 0.036612033843994<br>sha1 0.053884029388428<br>
Output for 5.4.2
crc32 0.052235841751099<br>md5 0.037091970443726<br>sha1 0.052881002426147<br>
Output for 5.4.1
crc32 0.052084922790527<br>md5 0.036460161209106<br>sha1 0.052634000778198<br>
Output for 5.4.0
crc32 0.051555156707764<br>md5 0.035224199295044<br>sha1 0.05561089515686<br>
Output for 5.3.29
crc32 0.051648139953613<br>md5 0.03650689125061<br>sha1 0.050222158432007<br>
Output for 5.3.28
crc32 0.05125093460083<br>md5 0.035243988037109<br>sha1 0.063167810440063<br>
Output for 5.3.27
crc32 0.050345897674561<br>md5 0.037184000015259<br>sha1 0.065357208251953<br>
Output for 5.3.26
crc32 0.051040887832642<br>md5 0.036403179168701<br>sha1 0.064314842224121<br>
Output for 5.3.25
crc32 0.051557779312134<br>md5 0.036391019821167<br>sha1 0.066081047058105<br>
Output for 5.3.24
crc32 0.051761865615845<br>md5 0.037029027938843<br>sha1 0.065937042236328<br>
Output for 5.3.23
crc32 0.051153898239136<br>md5 0.036556959152222<br>sha1 0.065378904342651<br>
Output for 5.3.22
crc32 0.051980018615723<br>md5 0.037278890609741<br>sha1 0.053670883178711<br>
Output for 5.3.21
crc32 0.051746845245361<br>md5 0.036098957061768<br>sha1 0.053699016571045<br>
Output for 5.3.20
crc32 0.05152702331543<br>md5 0.035453081130981<br>sha1 0.052158832550049<br>
Output for 5.3.19
crc32 0.051768064498901<br>md5 0.038450956344604<br>sha1 0.053555965423584<br>
Output for 5.3.18
crc32 0.052689075469971<br>md5 0.036380052566528<br>sha1 0.053241968154907<br>
Output for 5.3.17
crc32 0.051292896270752<br>md5 0.036072969436646<br>sha1 0.053273916244507<br>
Output for 5.3.16
crc32 0.052477121353149<br>md5 0.036528825759888<br>sha1 0.05361008644104<br>
Output for 5.3.15
crc32 0.052292823791504<br>md5 0.036556005477905<br>sha1 0.053869962692261<br>
Output for 5.3.14
crc32 0.052802085876465<br>md5 0.036858081817627<br>sha1 0.053786993026733<br>
Output for 5.3.13
crc32 0.052128791809082<br>md5 0.036569118499756<br>sha1 0.05271315574646<br>
Output for 5.3.12
crc32 0.051967144012451<br>md5 0.036281108856201<br>sha1 0.05315089225769<br>
Output for 5.3.11
crc32 0.052260875701904<br>md5 0.036496162414551<br>sha1 0.052438020706177<br>
Output for 5.3.10
crc32 0.051410913467407<br>md5 0.035912990570068<br>sha1 0.052331924438477<br>
Output for 5.3.9
crc32 0.051151990890503<br>md5 0.035202980041504<br>sha1 0.054087162017822<br>
Output for 5.3.8
crc32 0.051677942276001<br>md5 0.035721063613892<br>sha1 0.055083990097046<br>
Output for 5.3.7
crc32 0.051292896270752<br>md5 0.035115003585815<br>sha1 0.054321050643921<br>
Output for 5.3.6
crc32 0.051618099212646<br>md5 0.036150932312012<br>sha1 0.055041790008545<br>
Output for 5.3.5
crc32 0.051290035247803<br>md5 0.035755157470703<br>sha1 0.054105043411255<br>
Output for 5.3.4
crc32 0.051358222961426<br>md5 0.041594982147217<br>sha1 0.05413293838501<br>
Output for 5.3.3
crc32 0.051388025283813<br>md5 0.035397052764893<br>sha1 0.055155038833618<br>
Output for 5.3.2
crc32 0.050786018371582<br>md5 0.035567998886108<br>sha1 0.054275989532471<br>
Output for 5.3.1
crc32 0.050930023193359<br>md5 0.037056922912598<br>sha1 0.053871870040894<br>
Output for 5.3.0
crc32 0.051701068878174<br>md5 0.035166025161743<br>sha1 0.054734945297241<br>
Output for 5.2.17
crc32 0.051820993423462<br>md5 0.04109787940979<br>sha1 0.057605028152466<br>
Output for 5.2.16
crc32 0.051655054092407<br>md5 0.041859865188599<br>sha1 0.055866956710815<br>
Output for 5.2.15
crc32 0.051712036132812<br>md5 0.041848182678223<br>sha1 0.055654048919678<br>
Output for 5.2.14
crc32 0.051988840103149<br>md5 0.041351079940796<br>sha1 0.055310964584351<br>
Output for 5.2.13
crc32 0.052667140960693<br>md5 0.042567014694214<br>sha1 0.056299924850464<br>
Output for 5.2.12
crc32 0.052187919616699<br>md5 0.041629076004028<br>sha1 0.054777145385742<br>
Output for 5.2.11
crc32 0.051638841629028<br>md5 0.042545080184937<br>sha1 0.06549596786499<br>
Output for 5.2.10
crc32 0.052345991134644<br>md5 0.04212498664856<br>sha1 0.055037021636963<br>
Output for 5.2.9
crc32 0.051805973052979<br>md5 0.041960954666138<br>sha1 0.05525016784668<br>
Output for 5.2.8
crc32 0.0521559715271<br>md5 0.041079998016357<br>sha1 0.053490161895752<br>
Output for 5.2.7
crc32 0.051383972167969<br>md5 0.041325092315674<br>sha1 0.05430793762207<br>
Output for 5.2.6
crc32 0.052309036254883<br>md5 0.041656017303467<br>sha1 0.054912090301514<br>
Output for 5.2.5
crc32 0.052858829498291<br>md5 0.042069911956787<br>sha1 0.055459022521973<br>
Output for 5.2.4
crc32 0.05206298828125<br>md5 0.045090198516846<br>sha1 0.054167985916138<br>
Output for 5.2.3
crc32 0.051018953323364<br>md5 0.041745185852051<br>sha1 0.064415216445923<br>
Output for 5.2.2
crc32 0.051172018051147<br>md5 0.054960012435913<br>sha1 0.070023059844971<br>
Output for 5.2.1
crc32 0.051126003265381<br>md5 0.054460048675537<br>sha1 0.070760011672974<br>
Output for 5.2.0
crc32 0.050673007965088<br>md5 0.055040121078491<br>sha1 0.071225881576538<br>
Output for 5.1.6
crc32 0.052712917327881<br>md5 0.056124925613403<br>sha1 0.071202039718628<br>
Output for 5.1.5
crc32 0.051000833511353<br>md5 0.054563045501709<br>sha1 0.070623874664307<br>
Output for 5.1.4
crc32 0.051110982894897<br>md5 0.055591106414795<br>sha1 0.072633028030396<br>
Output for 5.1.3
crc32 0.052160978317261<br>md5 0.055806159973145<br>sha1 0.070343017578125<br>
Output for 5.1.2
crc32 0.051631927490234<br>md5 0.058772087097168<br>sha1 0.074630975723267<br>
Output for 5.1.1
crc32 0.052552938461304<br>md5 0.058472871780396<br>sha1 0.072510004043579<br>
Output for 5.1.0
crc32 0.051376104354858<br>md5 0.054321050643921<br>sha1 0.070902109146118<br>
Output for 5.0.5
crc32 0.054445028305054<br>md5 0.05615496635437<br>sha1 0.072519063949585<br>
Output for 5.0.4
crc32 0.053613901138306<br>md5 0.057121992111206<br>sha1 0.071820020675659<br>
Output for 5.0.3
crc32 0.053506135940552<br>md5 0.057639837265015<br>sha1 0.073993921279907<br>
Output for 5.0.2
crc32 0.053205966949463<br>md5 0.05563497543335<br>sha1 0.071151971817017<br>
Output for 5.0.1
crc32 0.053211212158203<br>md5 0.055468082427979<br>sha1 0.069863080978394<br>
Output for 5.0.0
crc32 0.05249810218811<br>md5 0.055274963378906<br>sha1 0.06991720199585<br>
Output for 4.4.9
crc32 0.052297<br>md5 0.055855<br>sha1 0.071224<br>
Output for 4.4.8
crc32 0.053531<br>md5 0.0568<br>sha1 0.079265<br>
Output for 4.4.7
crc32 -0.947473<br>md5 0.056576<br>sha1 0.072991<br>
Output for 4.4.6
crc32 0.053232<br>md5 0.057116<br>sha1 0.071564<br>
Output for 4.4.5
crc32 0.05333<br>md5 0.056585<br>sha1 0.07722<br>
Output for 4.4.4
crc32 0.053012<br>md5 0.05598<br>sha1 0.071698<br>
Output for 4.4.3
crc32 0.053876<br>md5 0.058117<br>sha1 0.070492<br>
Output for 4.4.2
crc32 0.053827<br>md5 0.057074<br>sha1 0.074461<br>
Output for 4.4.1
crc32 0.054651<br>md5 0.058147<br>sha1 0.074247<br>
Output for 4.4.0
crc32 0.054056<br>md5 0.057703<br>sha1 0.073375<br>
Output for 4.3.11
crc32 0.055152<br>md5 0.057637<br>sha1 0.07473<br>
Output for 4.3.10
crc32 0.054139<br>md5 0.058563<br>sha1 -0.9239<br>
Output for 4.3.9
crc32 0.054218<br>md5 0.056066<br>sha1 0.073413<br>
Output for 4.3.8
crc32 0.053816<br>md5 0.057009<br>sha1 0.072819<br>
Output for 4.3.7
crc32 0.054339<br>md5 0.062489<br>sha1 0.073133<br>
Output for 4.3.6
crc32 0.053053<br>md5 0.057539<br>sha1 0.072808<br>
Output for 4.3.5
crc32 0.053666<br>md5 -0.943099<br>sha1 0.072951<br>
Output for 4.3.4
crc32 0.053984<br>md5 0.055296<br>sha1 0.069928<br>
Output for 4.3.3
crc32 0.053323<br>md5 0.055614<br>sha1 0.069732<br>
Output for 4.3.2
crc32 0.052586<br>md5 0.055849<br>sha1 0.071855<br>
Output for 4.3.1
crc32 0.055465<br>md5 0.055342<br>sha1 0.071685<br>
Output for 4.3.0
crc32 0.053306<br>md5 0.046893<br>sha1 0.056762<br>