3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a placeholder #string and it looks @great right?"; $newstring = preg_replace("/@\w+\s/", "", $string); print $newstring;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
161.22 ms | 2558 KiB | 9 Q