1--TEST-- 2Hash: sha1 algorithm 3--FILE-- 4<?php 5echo hash('sha1', '') . "\n"; 6echo hash('sha1', 'a') . "\n"; 7echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 8 9/* FIPS-180 Vectors */ 10echo hash('sha1', 'abc') . "\n"; 11echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 12echo hash('sha1', str_repeat('a', 1000000)) . "\n"; 13?> 14--EXPECT-- 15da39a3ee5e6b4b0d3255bfef95601890afd80709 1686f7e437faa5a7fce15d1ddcb9eaeaea377667b8 17f52e3c2732de7bea28f216d877d78dae1aa1ac6a 18a9993e364706816aba3e25717850c26c9cd0d89d 1984983e441c3bd26ebaae4aa1f95129e5e54670f1 2034aa973cd4c4daa4f61eeb2bdbad27316534016f 21