3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'test test test test'; echo preg_replace("/\w+\K/", '*', $string);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
203.6 ms | 1719 KiB | 11 Q