3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
This is some text Here's some more text Yet more text Again, some text.