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(preg_replace("\\n", "", $str));
based on uB8I2
Output for 4.3.11 - 5.6.28, 7.0.0 - 7.1.0
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/lva2d on line 36 NULL
Output for 4.3.0 - 4.3.10, hhvm-3.12.0
Warning: Delimiter must not be alphanumeric or backslash in /in/lva2d on line 36 NULL
Output for hhvm-3.10.0

Process exited with code 153.