3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array="2613626330 03949 2502602139 01336 2469405062 03538 0511502857 01337"; $algos=hash_algos(); $array=explode("\n",$array); foreach ($array as $value) { $value=explode(" ",$value); echo PHP_EOL.$value[0]." ".$value[1]; foreach ($algos as $algo) { $res=crc32(hash($algo,$value[1],true)); echo PHP_EOL.$algo.": ".$res." [".($res-$value[0])."]"; } break; }
Output for 7.1.0 - 7.3.0beta1
2613626330 03949 md2: 3516583527 [902957197] md4: 1845030117 [-768596213] md5: 45613250 [-2568013080] sha1: 1260010420 [-1353615910] sha224: 2098503500 [-515122830] sha256: 3464287007 [850660677] sha384: 994547288 [-1619079042] sha512/224: 1528117872 [-1085508458] sha512/256: 483339197 [-2130287133] sha512: 563912336 [-2049713994] sha3-224: 2178602678 [-435023652] sha3-256: 3979834889 [1366208559] sha3-384: 2410810615 [-202815715] sha3-512: 984584236 [-1629042094] ripemd128: 3355611073 [741984743] ripemd160: 4058524691 [1444898361] ripemd256: 409838627 [-2203787703] ripemd320: 4083909912 [1470283582] whirlpool: 169167022 [-2444459308] tiger128,3: 3764505903 [1150879573] tiger160,3: 594619592 [-2019006738] tiger192,3: 1493471309 [-1120155021] tiger128,4: 4074717977 [1461091647] tiger160,4: 528231505 [-2085394825] tiger192,4: 2558142938 [-55483392] snefru: 15846045 [-2597780285] snefru256: 15846045 [-2597780285] gost: 1258847867 [-1354778463] gost-crypto: 1580151137 [-1033475193] adler32: 3269934078 [656307748] crc32: 3008660478 [395034148] crc32b: 2871071421 [257445091] fnv132: 175785253 [-2437841077] fnv1a32: 1181086793 [-1432539537] fnv164: 3908425396 [1294799066] fnv1a64: 1722144190 [-891482140] joaat: 2453753231 [-159873099] haval128,3: 3454746691 [841120361] haval160,3: 227369983 [-2386256347] haval192,3: 2789720369 [176094039] haval224,3: 777781303 [-1835845027] haval256,3: 1349087306 [-1264539024] haval128,4: 3246141809 [632515479] haval160,4: 1891813847 [-721812483] haval192,4: 3419769957 [806143627] haval224,4: 2968125728 [354499398] haval256,4: 3274707860 [661081530] haval128,5: 3868800680 [1255174350] haval160,5: 2930924302 [317297972] haval192,5: 2408175166 [-205451164] haval224,5: 3959143805 [1345517475] haval256,5: 976985506 [-1636640824]
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20
2613626330 03949 md2: 3516583527 [902957197] md4: 1845030117 [-768596213] md5: 45613250 [-2568013080] sha1: 1260010420 [-1353615910] sha224: 2098503500 [-515122830] sha256: 3464287007 [850660677] sha384: 994547288 [-1619079042] sha512: 563912336 [-2049713994] ripemd128: 3355611073 [741984743] ripemd160: 4058524691 [1444898361] ripemd256: 409838627 [-2203787703] ripemd320: 4083909912 [1470283582] whirlpool: 169167022 [-2444459308] tiger128,3: 3764505903 [1150879573] tiger160,3: 594619592 [-2019006738] tiger192,3: 1493471309 [-1120155021] tiger128,4: 4074717977 [1461091647] tiger160,4: 528231505 [-2085394825] tiger192,4: 2558142938 [-55483392] snefru: 15846045 [-2597780285] snefru256: 15846045 [-2597780285] gost: 1258847867 [-1354778463] gost-crypto: 1580151137 [-1033475193] adler32: 3269934078 [656307748] crc32: 3008660478 [395034148] crc32b: 2871071421 [257445091] fnv132: 175785253 [-2437841077] fnv1a32: 1181086793 [-1432539537] fnv164: 3908425396 [1294799066] fnv1a64: 1722144190 [-891482140] joaat: 2453753231 [-159873099] haval128,3: 3454746691 [841120361] haval160,3: 227369983 [-2386256347] haval192,3: 2789720369 [176094039] haval224,3: 777781303 [-1835845027] haval256,3: 1349087306 [-1264539024] haval128,4: 3246141809 [632515479] haval160,4: 1891813847 [-721812483] haval192,4: 3419769957 [806143627] haval224,4: 2968125728 [354499398] haval256,4: 3274707860 [661081530] haval128,5: 3868800680 [1255174350] haval160,5: 2930924302 [317297972] haval192,5: 2408175166 [-205451164] haval224,5: 3959143805 [1345517475] haval256,5: 976985506 [-1636640824]
Output for hhvm-3.15.4
2613626330 03949 adler32: 3269934078 [656307748] crc32: 3008660478 [395034148] crc32b: 2871071421 [257445091] fnv132: 175785253 [-2437841077] fnv164: 3908425396 [1294799066] fnv1a32: 1181086793 [-1432539537] fnv1a64: 1722144190 [-891482140] gost: 1258847867 [-1354778463] haval128,3: 3454746691 [841120361] haval128,4: 3246141809 [632515479] haval128,5: 3868800680 [1255174350] haval160,3: 227369983 [-2386256347] haval160,4: 1891813847 [-721812483] haval160,5: 2930924302 [317297972] haval192,3: 2789720369 [176094039] haval192,4: 3419769957 [806143627] haval192,5: 2408175166 [-205451164] haval224,3: 777781303 [-1835845027] haval224,4: 2968125728 [354499398] haval224,5: 3959143805 [1345517475] haval256,3: 1349087306 [-1264539024] haval256,4: 3274707860 [661081530] haval256,5: 976985506 [-1636640824] joaat: 2453753231 [-159873099] md2: 3516583527 [902957197] md4: 1845030117 [-768596213] md5: 45613250 [-2568013080] ripemd128: 3355611073 [741984743] ripemd160: 4058524691 [1444898361] ripemd256: 409838627 [-2203787703] ripemd320: 4083909912 [1470283582] sha1: 1260010420 [-1353615910] sha224: 2098503500 [-515122830] sha256: 3464287007 [850660677] sha3-224: 2178602678 [-435023652] sha3-256: 3979834889 [1366208559] sha3-384: 2410810615 [-202815715] sha3-512: 984584236 [-1629042094] sha384: 994547288 [-1619079042] sha512: 563912336 [-2049713994] snefru: 15846045 [-2597780285] tiger128,3: 3764505903 [1150879573] tiger128,4: 4074717977 [1461091647] tiger160,3: 594619592 [-2019006738] tiger160,4: 528231505 [-2085394825] tiger192,3: 1493471309 [-1120155021] tiger192,4: 2558142938 [-55483392] whirlpool: 169167022 [-2444459308]