1--TEST-- 2Hash: MurmurHash3 seed 3--FILE-- 4<?php 5 6$ctx = hash_init("murmur3f", options: ["seed" => 42]); 7hash_update($ctx, "Two"); 8hash_update($ctx, " hashes"); 9hash_update($ctx, " meet"); 10hash_update($ctx, " in"); 11hash_update($ctx, " a"); 12hash_update($ctx, " bar."); 13$h0 = hash_final($ctx); 14echo $h0, "\n"; 15 16$h0 = hash("murmur3f", "Two hashes meet in a bar.", options: ["seed" => 42]); 17echo $h0, "\n"; 18 19$ctx = hash_init("murmur3c", options: ["seed" => 106]); 20hash_update($ctx, "Two"); 21hash_update($ctx, " hashes"); 22hash_update($ctx, " meet"); 23hash_update($ctx, " in"); 24hash_update($ctx, " a"); 25hash_update($ctx, " bar."); 26$h0 = hash_final($ctx); 27echo $h0, "\n"; 28 29$h0 = hash("murmur3c", "Two hashes meet in a bar.", options: ["seed" => 106]); 30echo $h0, "\n"; 31 32$ctx = hash_init("murmur3a", options: ["seed" => 2345]); 33hash_update($ctx, "Two"); 34hash_update($ctx, " hashes"); 35hash_update($ctx, " meet"); 36hash_update($ctx, " in"); 37hash_update($ctx, " a"); 38hash_update($ctx, " bar."); 39$h0 = hash_final($ctx); 40echo $h0, "\n"; 41 42$h0 = hash("murmur3a", "Two hashes meet in a bar.", options: ["seed" => 2345]); 43echo $h0, "\n"; 44 45?> 46--EXPECT-- 4795855f9be0db784a5c37e878c4a4dcee 4895855f9be0db784a5c37e878c4a4dcee 49f64c9eb40287fa686575163893e283b2 50f64c9eb40287fa686575163893e283b2 517f7ec59b 527f7ec59b 53