3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hello"; echo preg_replace('/(.)(.*)(.)/', '$3$2$1', $string);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.62 ms | 1717 KiB | 9 Q