PHP code example of lastguest / murmurhash

1. Go to this page and download the library: Download lastguest/murmurhash library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lastguest / murmurhash example snippets



use lastguest\Murmur;

echo Murmur::hash3("Hello World");
// cnd0ue


use lastguest\Murmur;

echo Murmur::hash3("Hello World", 1234567);
// qtq2u


use lastguest\Murmur;

echo Murmur::hash3_int("Hello World");
// 427197390