3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is some text {'JSON':'Object'} Here's some more text {'JSON':'Object'} Yet more text {'JSON':'Object'} Again, some text."; echo preg_replace('#\{.*?\}#s', '', $str);

preferences:
45.25 ms | 402 KiB | 5 Q