3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sentence='This is the sentence to be searhed through'; $search = 'sent'; $result = preg_replace("/" . preg_quote($search, "/") . "/ui", "<strong style='color:yellow'>$0</strong>", $sentence); echo $result;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.69 ms | 2014 KiB | 11 Q