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:
157.53 ms | 1716 KiB | 11 Q