Per T161647: RFC: Deprecate using php serialization inside MediaWiki, Echo should use JSON for serialization, not native serialize(). It stores some serialized data potentially forever (see T323236) so the switch will require a migration script.
PHP will lose the ability to unserialize the data (as it is using the older, deprecated variant of PHP serialization) in 9.0.