PHP serializer written in PHP for the fun of it