Lua to PHP serializer