On Aug 25, 2022, at 21:47, Michał Marcin Brzuchalski <michal.brzuchal...@gmail.com> wrote: > The same goes here and I'm not convinced we should introduce next small > function that can be simply implemented in user land.
What "simple implementation in userland" do you have in mind? Can you provide an example? json_decode() is not an acceptable substitute here -- as David Gebler has observed, decoding a large JSON structure can have a significant impact on memory usage, even if the data is immediately discarded. Any implementation based on string processing, on the other hand, is likely to be dramatically slower, and may have subtle differences in behavior from PHP's JSON parser. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php