mocks hash for PHP <5.5