3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '{"articles":[\n{"article_nr":"31208", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"31244", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"31245", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"59978", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60027", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60028", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60029", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60076", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60077", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60078", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60079", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60080", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60081", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60082", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60083", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60084", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60085", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60086", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60087", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60089", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"03-0630", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0633", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0640", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0642", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"05-2074-070", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-2074-080", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-2075-080", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-6361-123", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-6361-198", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"WE2044-010", "deleted":"0", "collection":"col_(bc)"}, {"article_nr":"WE2044-040", "deleted":"0", "collection":"col_(bc)"}, {"article_nr":"WE2044-091", "deleted":"0", "collection":"col_(bc)"}]}'; var_dump(explode("\\n", $str));
based on fnCDG
Output for 4.3.0 - 7.1.0
array(2) { [0]=> string(13) "{"articles":[" [1]=> string(2137) "{"article_nr":"31208", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"31244", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"31245", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"59978", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60027", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60028", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60029", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60076", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60077", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60078", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60079", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60080", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60081", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60082", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60083", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60084", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60085", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60086", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60087", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"60089", "deleted":"0", "collection":"M%c3%b6bel"}, {"article_nr":"03-0630", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0633", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0640", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"03-0642", "deleted":"0", "collection":"col_(5)"}, {"article_nr":"05-2074-070", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-2074-080", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-2075-080", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-6361-123", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"05-6361-198", "deleted":"0", "collection":"col_(13)"}, {"article_nr":"WE2044-010", "deleted":"0", "collection":"col_(bc)"}, {"article_nr":"WE2044-040", "deleted":"0", "collection":"col_(bc)"}, {"article_nr":"WE2044-091", "deleted":"0", "collection":"col_(bc)"}]}" }